diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 5fab161..27a5a1f 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -181,7 +181,7 @@ final class BackendController extends Controller $id = $request->getDataString('id') ?? ''; $settings = SettingMapper::getAll()->where('module', $id)->execute(); - if (!($settings instanceof NullSetting)) { + if ($settings->id > 0) { $view->setData('settings', !\is_array($settings) ? [$settings] : $settings); }