Fix the info if module are provided by module or not was wrong

This commit is contained in:
Laurent Destailleur
2016-09-30 13:02:13 +02:00
parent 504ee9c73e
commit 94dbe3da3f
38 changed files with 198 additions and 27 deletions

View File

@@ -605,7 +605,7 @@ if ($mode != 'marketplace')
else $text.=$langs->trans("No");
$text.='<br><strong>'.$langs->trans("AddMenus").':</strong> ';
if (isset($objMod->menu) && is_array($objMod->menu) && ! empty($objMod->menu))
if (isset($objMod->menu) && ! empty($objMod->menu)) // objMod can be an array or just an int 1
{
$text.=$langs->trans("Yes");
}