From d112b3d9257d74117bf7d30b1217c6d8e22480b3 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Wed, 19 Apr 2017 16:12:42 +0200 Subject: [PATCH] Fixed #4549 Empty row in all empty tables --- interface/lib/classes/listform_actions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php index d9fd759287..1bf615e857 100644 --- a/interface/lib/classes/listform_actions.inc.php +++ b/interface/lib/classes/listform_actions.inc.php @@ -153,7 +153,7 @@ class listform_actions { $records_new = array_slice($records_new, $app->listform->getPagingValue('offset'), $app->listform->getPagingValue('records_per_page')); } - $app->tpl->setLoop('records', $records_new); + if(is_array($records_new) && count($records_new) > 0) $app->tpl->setLoop('records', $records_new); $this->onShow(); -- GitLab