diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php index d9fd759287665291775f1b872fc9b3249a054e82..1bf615e857bc00e229553e4a3e765e04d784fbf9 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();