瀏覽代碼

Fixed error check

pdontthink 19 年之前
父節點
當前提交
6305990e9f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/template/template.class.php

+ 1 - 1
class/template/template.class.php

@@ -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();