Fixes #435
This commit is contained in:
parent
ef73918098
commit
96ec1e0b08
1 changed files with 0 additions and 13 deletions
13
app/Item.php
13
app/Item.php
|
@ -56,19 +56,6 @@ class Item extends Model
|
|||
if(empty($config)) {
|
||||
$config = null;
|
||||
} else {
|
||||
$store = false;
|
||||
//die(var_dump($config));
|
||||
foreach($config as $key => $check) {
|
||||
if($key == 'type') continue;
|
||||
if($key == 'dataonly') continue;
|
||||
if(!empty($check) && $check != '0') {
|
||||
$store = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
//die(var_dump($store))
|
||||
|
||||
$config['enabled'] = ($store) ? true : false;
|
||||
$config = json_encode($config);
|
||||
}
|
||||
return $config;
|
||||
|
|
Loading…
Reference in a new issue