Fix warnings
This commit is contained in:
parent
e358ef9fa0
commit
3f1964a892
1 changed files with 4 additions and 2 deletions
|
|
@ -5091,8 +5091,10 @@ if ($module == 'initmodule') {
|
|||
print '<td class="left">';
|
||||
print '<select class="maxwidth" name="objects" id="objects">';
|
||||
print '<option value=""></option>';
|
||||
foreach ($objects as $value) {
|
||||
print '<option value="'.strtolower($value).'">'.dol_escape_htmltag(strtolower($value)).'</option>';
|
||||
if (is_array($objects)) {
|
||||
foreach ($objects as $value) {
|
||||
print '<option value="'.strtolower($value).'">'.dol_escape_htmltag(strtolower($value)).'</option>';
|
||||
}
|
||||
}
|
||||
print '</select>';
|
||||
print '<select class="maxwidth hideobject" name="perms" id="perms">';
|
||||
|
|
|
|||
Loading…
Reference in a new issue