diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index 8f8338d3c..d46809c4c 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -358,9 +358,10 @@ public function appload(Request $request) $app = Application::single($appid); $output = (array)$app; + $appdetails = Application::getApp($appid); + if((boolean)$app->enhanced === true) { // if(!isset($app->config)) { // class based config - $appdetails = Application::getApp($appid); $output['custom'] = className($appdetails->name).'.config'; // } }