From 18cc6c11b51b94ef0e2be55a0cf11de920b87870 Mon Sep 17 00:00:00 2001 From: Karel Hink Date: Fri, 30 Jul 2021 19:28:52 +0000 Subject: Fix Lots of Error: file_exists(): open_basedir restriction in effect. in Log Signed-off-by: Karel Hink --- lib/private/Template/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Template/Base.php') diff --git a/lib/private/Template/Base.php b/lib/private/Template/Base.php index 2087f5f8ed9..2de8c7ad5b1 100644 --- a/lib/private/Template/Base.php +++ b/lib/private/Template/Base.php @@ -65,7 +65,7 @@ class Base { */ protected function getAppTemplateDirs($theme, $app, $serverRoot, $app_dir) { // Check if the app is in the app folder or in the root - if (file_exists($app_dir.'/templates/')) { + if ($app_dir !== false && file_exists($app_dir.'/templates/')) { return [ $serverRoot.'/themes/'.$theme.'/apps/'.$app.'/templates/', $app_dir.'/templates/', -- cgit v1.2.3