Search: Fix PHP 8.2 compatibility (resolves #1000)

This commit is contained in:
veselcraft 2023-10-28 13:29:19 +03:00
parent 15a5f172d9
commit 1f8f5cf6fa
No known key found for this signature in database
GPG key ID: 9CF0B42766CCF7BA

View file

@ -139,6 +139,8 @@
}
</style>
<div style="margin-top:-7px">
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
{include "../components/paginator.xml", conf => (object) [
"page" => $page,
"count" => $count,
@ -153,7 +155,6 @@
<div>
{include searchOptions}
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
<div class="container_gray borderup" style="float:left;width:73.3%;">
{if sizeof($data) > 0}
{if $type == "users" || $type == "groups" || $type == "apps"}