Fix show no record if list empty
This commit is contained in:
parent
abd3f272fa
commit
7beff746bf
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user