Fix show no record if list empty

This commit is contained in:
Laurent Destailleur 2022-07-13 01:01:44 +02:00
parent 713b506980
commit bec9181d3f

View File

@ -1939,6 +1939,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>';