Fix show no record if list empty

This commit is contained in:
Laurent Destailleur 2022-07-13 01:01:44 +02:00
parent abd3f272fa
commit 7beff746bf

View File

@ -1915,6 +1915,17 @@ if ($resql) {
$db->free($resql);
// If no record found
if ($num == 0) {
$colspan = 1;
foreach ($arrayfields as $key => $val) {
if (!empty($val['checked'])) {
$colspan++;
}
}
print '<tr><td colspan="'.$colspan.'"><span class="opacitymedium">'.$langs->trans("NoRecordFound").'</span></td></tr>';
}
print "</table>";
print "</div>";
print '</form>';