Quick backup before crash

This commit is contained in:
Dennis Eichhorn 2023-06-13 18:55:51 +00:00
parent e1f765d8fe
commit c786607bef
2 changed files with 5 additions and 4 deletions

View File

@ -179,8 +179,9 @@ final class BackendController extends Controller
$id = $request->getDataString('id') ?? ''; $id = $request->getDataString('id') ?? '';
/** @var \Model\Setting[] $settings */
$settings = SettingMapper::getAll()->where('module', $id)->execute(); $settings = SettingMapper::getAll()->where('module', $id)->execute();
if ($settings->id > 0) { if (!empty($settings)) {
$view->data['settings'] = !\is_array($settings) ? [$settings] : $settings; $view->data['settings'] = !\is_array($settings) ? [$settings] : $settings;
} }

View File

@ -47,7 +47,7 @@ final class TimerecordingController extends Controller
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->unitId, $this->app->unitId,
$this->app->appName $this->app->appId
); );
$navView = new NavigationView($this->app->l11nManager, $request, $response); $navView = new NavigationView($this->app->l11nManager, $request, $response);
@ -76,7 +76,7 @@ final class TimerecordingController extends Controller
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->unitId, $this->app->unitId,
$this->app->appName $this->app->appId
); );
$nav = new \Modules\Navigation\Views\NavigationView($this->app->l11nManager, $request, $response); $nav = new \Modules\Navigation\Views\NavigationView($this->app->l11nManager, $request, $response);
@ -138,7 +138,7 @@ final class TimerecordingController extends Controller
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->unitId, $this->app->unitId,
$this->app->appName $this->app->appId
); );
$navView = new NavigationView($this->app->l11nManager, $request, $response); $navView = new NavigationView($this->app->l11nManager, $request, $response);