From 16e4a1dd1795714426a529f02391d41c41acae71 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Sat, 16 Apr 2011 09:51:46 +0200 Subject: [PATCH] Fix template.php --- lib/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 2.39.5