浏览代码

Prevent crash when trying to load the favicon during the setup !

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1620 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 年之前
父节点
当前提交
12e6ee7eca
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      application/webpage.class.inc.php

+ 4 - 1
application/webpage.class.inc.php

@@ -413,7 +413,10 @@ class WebPage
             }
             echo "</style>\n";
         }
- 		echo "<link rel=\"shortcut icon\" href=\"".utils::GetAbsoluteUrlAppRoot()."images/favicon.ico\" />\n";
+        if (class_exists('MetaModel') && MetaModel::GetConfig())
+        {
+ 			echo "<link rel=\"shortcut icon\" href=\"".utils::GetAbsoluteUrlAppRoot()."images/favicon.ico\" />\n";
+        }
         echo "</head>\n";
         echo "<body>\n";
         echo self::FilterXSS($this->s_content);