Update functions_html.inc.php

replace "count xx != 0 by !empty, to support PHP 8.2 and after
This commit is contained in:
Eric Quinton
2024-07-12 09:09:05 +02:00
committed by Pierrick Le Gall
parent 1647147a9c
commit be85e9381a

View File

@@ -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]);
}