Skip to content

Commit

Permalink
Search: Fix PHP 8.2 compatibility (resolves #1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
veselcraft committed Oct 28, 2023
1 parent 15a5f17 commit 1f8f5cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Web/Presenters/templates/Search/Index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"}
Expand Down

0 comments on commit 1f8f5cf

Please sign in to comment.