This commit is contained in:
Kode 2022-03-13 16:13:36 +00:00
parent ef73918098
commit 96ec1e0b08

View file

@ -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;