From a4fdc4dbce793548ceb04993a489c74bc59ea753 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 5 Apr 2021 11:26:13 +0200 Subject: [PATCH] comptability version 7.4 warning null is not a countable --- include/template/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/template/dashboard.php b/include/template/dashboard.php index eda18ed0d..c1ecb32e8 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -158,7 +158,7 @@ if ( $report != 0 ) : ?> $result=$rapport->get_row($limit['start'],$limit['end'],'periode'); $ix=0; - if ( count ($result) > 0) + if ( !empty ($result ) && count ($result) > 0) { echo ''; foreach ($result as $row) {