]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix template.php
authorJakob Sack <kde@jakobsack.de>
Sat, 16 Apr 2011 07:51:46 +0000 (09:51 +0200)
committerJakob Sack <kde@jakobsack.de>
Sat, 16 Apr 2011 07:51:46 +0000 (09:51 +0200)
lib/template.php

index 80bb4317d92fab29accc2daf43d76fdcf2b82721..c36b1e7a36743925be5306a262eddfa89264374a 100644 (file)
@@ -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{