diff --git a/~dev_rating/application/classes/Controller/Environment/Office.php b/~dev_rating/application/classes/Controller/Environment/Office.php index 84cf02a91ea6438efaff88d983557100aa6fdfc2..6a32e4c0894c9bf6aa9a47be570421ae0931cebc 100644 --- a/~dev_rating/application/classes/Controller/Environment/Office.php +++ b/~dev_rating/application/classes/Controller/Environment/Office.php @@ -15,11 +15,11 @@ class Controller_Environment_Office extends Controller_Environment_User // todo: move to twig $menu = Model_System::loadConfig( - $this->user->isAdmin() - ? 'sidePanel/admin.json' - : $this->user->isDean() - ? 'sidePanel/dean.json' - : []); + $this->user->isAdmin() ? + 'sidePanel/admin.json' : ( + $this->user->isDean() ? + 'sidePanel/dean.json' : [] + )); $this->twig->set_global('SidePanel', $menu); }