diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index f23ec97119..94b39e951a 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -113,6 +113,8 @@ class TemplateLayout extends \OC_Template { $this->assign('themingInvertMenu', $util->invertTextColor(\OC::$server->getThemingDefaults()->getColorPrimary())); } catch (\OCP\AppFramework\QueryException $e) { $this->assign('themingInvertMenu', false); + } catch (\OCP\AutoloadNotAllowedException $e) { + $this->assign('themingInvertMenu', false); } } else if ($renderAs === 'error') {