Browse Source

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 years ago
parent
commit
12e6ee7eca
1 changed files with 4 additions and 1 deletions
  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);