N°3320 - Fix empty tabs being displayed (misuse of the API or user rights)

This commit is contained in:
Molkobain
2020-09-28 14:10:19 +02:00
parent 9520d2794f
commit 0948e80060
2 changed files with 9 additions and 6 deletions

View File

@@ -1547,6 +1547,12 @@ class TabManager
{
unset($aTabs['tabs'][$sTabCode]);
}
// N°3320: Do not display empty tabs
if (empty($aTabData['html']))
{
unset($aTabs['tabs'][$sTabCode]);
}
}
// Render tabs