Merge pull request #714 from FHenry/3.3

fix [ bug #749 ]
This commit is contained in:
Laurent Destailleur 2013-03-06 10:33:51 -08:00
commit 1f0dbc698c

View File

@ -1147,6 +1147,7 @@ function showModulesExludedForExternal($modules)
$text=$langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers"); $text=$langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers");
$listofmodules=explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL); $listofmodules=explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL);
$i=0; $i=0;
if (!empty($modules)) {
foreach($modules as $module) foreach($modules as $module)
{ {
$moduleconst=$module->const_name; $moduleconst=$module->const_name;
@ -1161,6 +1162,7 @@ function showModulesExludedForExternal($modules)
$i++; $i++;
$text .= $langs->trans('Module'.$module->numero.'Name'); $text .= $langs->trans('Module'.$module->numero.'Name');
} }
}
return img_picto($langs->trans('InfoAdmin'), 'star').' '.$text; return img_picto($langs->trans('InfoAdmin'), 'star').' '.$text;
} }