Skip to content

Commit d112b3d

Browse files
author
Till Brehm
committed
Fixed #4549 Empty row in all empty tables
1 parent 86b3754 commit d112b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/listform_actions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function onLoad()
153153
$records_new = array_slice($records_new, $app->listform->getPagingValue('offset'), $app->listform->getPagingValue('records_per_page'));
154154
}
155155

156-
$app->tpl->setLoop('records', $records_new);
156+
if(is_array($records_new) && count($records_new) > 0) $app->tpl->setLoop('records', $records_new);
157157

158158
$this->onShow();
159159

0 commit comments

Comments
 (0)