diff --git a/webroot/panel/modal/pi_search.php b/webroot/panel/modal/pi_search.php index ef31e8fc..28a077a0 100644 --- a/webroot/panel/modal/pi_search.php +++ b/webroot/panel/modal/pi_search.php @@ -24,11 +24,11 @@ $fn = strtolower($assoc_obj->getOwner()->getFullName()); if (strpos($fn, strtolower($search_query)) !== false) { if (!in_array($assoc, $out)) { - array_push($out, $assoc); - if (count($out) >= $MAX_COUNT) { - break; - } - } + array_push($out, $assoc); + if (count($out) >= $MAX_COUNT) { + break; + } + } } }