mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user