diff --git a/Web/Presenters/templates/Search/Index.xml b/Web/Presenters/templates/Search/Index.xml
index 492710375..cb1f54bdb 100644
--- a/Web/Presenters/templates/Search/Index.xml
+++ b/Web/Presenters/templates/Search/Index.xml
@@ -139,6 +139,8 @@
}
+ {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
+
{include "../components/paginator.xml", conf => (object) [
"page" => $page,
"count" => $count,
@@ -153,7 +155,6 @@
{include searchOptions}
- {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
{if sizeof($data) > 0}
{if $type == "users" || $type == "groups" || $type == "apps"}