Browse Source

fix undefined $view

pull/23/head v1.2.1
Chris 7 years ago
parent
commit
d07fb5ea99
  1. 1
      app/Item.php

1
app/Item.php

@ -55,6 +55,7 @@ class Item extends Model
public function getConfigAttribute() public function getConfigAttribute()
{ {
$output = null; $output = null;
$view = null;
if(isset($this->description) && !empty($this->description)){ if(isset($this->description) && !empty($this->description)){
$output = json_decode($this->description); $output = json_decode($this->description);
if(isset($output->type) && !empty($output->type)) { if(isset($output->type) && !empty($output->type)) {

Loading…
Cancel
Save