Fix scrutinizer bug

This commit is contained in:
Laurent Destailleur 2018-01-12 15:19:02 +01:00
parent 7da9911db1
commit 63e824144e

View File

@ -663,7 +663,7 @@ if ($resql)
print '<tr>';
print '<td>';
print '<input name="label" class="flat minwidth200" type="text" value="'.GETPOST("label","alpha").'">';
if ($options) {
if (is_array($options) && count($options)) {
print '<br>'.$langs->trans("Rubrique").': ';
print Form::selectarray('cat1', $options, GETPOST('cat1'), 1);
}