From: Jakob Sack Date: Sat, 16 Apr 2011 07:51:46 +0000 (+0200) Subject: Fix template.php X-Git-Tag: v3.0~267^2~558^2~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=16e4a1dd1795714426a529f02391d41c41acae71;p=nextcloud-server.git Fix template.php --- 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{