N°2313 - Markup extensibility: Add support for both code AND title in admin. console tabs

This commit is contained in:
Eric
2020-01-16 09:56:22 +01:00
parent 026b7e1836
commit b370deaac9
5 changed files with 17 additions and 11 deletions

View File

@@ -1474,7 +1474,7 @@ class TabManager
{
// Sometimes people set an empty tab to force content NOT to be rendered in the previous one. We need to remove them.
// Note: Look for "->SetCurrentTab('');" for examples.
if (empty($sTabCode))
if ($sTabCode === '')
{
unset($aTabs['tabs'][$sTabCode]);
}
@@ -1604,4 +1604,4 @@ EOF
}
}
}
}
}