diff --git a/app/Item.php b/app/Item.php index b297a127a16ed9b83f5c78e210d6b90ccc5d234b..8e487acab331c170372fd4b76ca8a1582defa362 100644 --- a/app/Item.php +++ b/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;