Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
12e6ee7eca
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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);