Prevent a PHP crash when the icon tag is missing from a highlight_code definition in the XML.

SVN:trunk[3476]
This commit is contained in:
Denis Flaven
2014-12-17 17:27:24 +00:00
parent 4c3bf70cc4
commit 0f967a41df

View File

@@ -1092,6 +1092,10 @@ EOF;
$sIcon = $sModuleRelativeDir.'/'.$sIcon;
$sIcon = "utils::GetAbsoluteUrlModulesRoot().'$sIcon'";
}
else
{
$sIcon = "''";
}
switch($sColor)
{
// Known PHP constants: keep the literal value as-is