Fixed error check
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 21 Sep 2006 13:29:22 +0000 (13:29 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 21 Sep 2006 13:29:22 +0000 (13:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11729 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/template/template.class.php

index 84310b8dbe0a3827918ae42105ab49873543024e..db04cfa6306bac62d89c1a85e34e250c1d55e75d 100755 (executable)
@@ -403,7 +403,7 @@ return substr($this->template_dir, strlen(SM_PATH));
 
         // Get right template file
         $template = $this->get_template_file_path($file);
-        if (!file_exists($template)) {
+        if (empty($template)) {
             trigger_error('The template "'.htmlspecialchars($file).'" could not be fetched!', E_USER_ERROR);
         } else {
             ob_start();