mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Update functions_html.inc.php
replace "count xx != 0 by !empty, to support PHP 8.2 and after
This commit is contained in:
committed by
Pierrick Le Gall
parent
1647147a9c
commit
be85e9381a
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user