From be85e9381a7ab6230eca065a9d0d2aaa097af7c5 Mon Sep 17 00:00:00 2001 From: Eric Quinton Date: Fri, 12 Jul 2024 09:09:05 +0200 Subject: [PATCH] Update functions_html.inc.php replace "count xx != 0 by !empty, to support PHP 8.2 and after --- include/functions_html.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index e2ce845cf..a41b87090 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -659,7 +659,7 @@ function flush_page_messages() unset($_SESSION['page_'.$mode]); } - if (count($page[$mode]) != 0) + if (!empty($page[$mode])) { $template->assign($mode, $page[$mode]); }