diff options
-rw-r--r-- | lib/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php index 80bb4317d92..c36b1e7a367 100644 --- a/lib/template.php +++ b/lib/template.php @@ -97,7 +97,7 @@ class OC_TEMPLATE{ $template = "$SERVERROOT/templates/"; if( $app != "core" && $app != "" ){ // Check if the app is in the app folder - if( "$SERVERROOT/apps/$app/templates/" ){ + if( file_exists( "$SERVERROOT/apps/$app/templates/" )){ $template = "$SERVERROOT/apps/$app/templates/"; } else{ |