FIx product list

fix mistake if fk_state empty
This commit is contained in:
ptibogxiv 2020-09-17 11:41:53 +02:00 committed by GitHub
parent 05636c39bd
commit 8284d0ee06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1445,7 +1445,9 @@ if ($resql)
// State
if (!empty($arrayfields['p.fk_state']['checked']))
{
print '<td>'.getState($obj->fk_state, 0, $db).'</td>';
print '<td>';
if (!empty($obj->fk_state)) print getState($obj->fk_state, 0, $db);
print '</td>';
if (!$i) $totalarray['nbfield']++;
}
// Accountancy code sell