]> BookStack Code Mirror - bookstack/blobdiff - app/Theming/ThemeService.php
Fixes for CodeStyle vol.2
[bookstack] / app / Theming / ThemeService.php
index 6fe80559eefbc204a6fd1b5ee538fcb337d638c9..602abaf1c5a35e4845cbde67aec8981071271f5c 100644 (file)
@@ -49,7 +49,7 @@ class ThemeService
     public function readThemeActions()
     {
         $themeActionsFile = theme_path('functions.php');
-        if (file_exists($themeActionsFile)) {
+        if ($themeActionsFile && file_exists($themeActionsFile)) {
             require $themeActionsFile;
         }
     }