From 8a85c9afc9bf95990bf03f4a38d752ae12fe3403 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 2 Sep 2014 12:40:24 -0500
Subject: [PATCH] search: Fix _N() usage for advanced search

---
 include/ajax.tickets.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php
index 31776edb8..7d0ee9eb7 100644
--- a/include/ajax.tickets.php
+++ b/include/ajax.tickets.php
@@ -265,8 +265,8 @@ class TicketsAjaxAPI extends AjaxController {
             $uid = md5($_SERVER['QUERY_STRING']);
             $_SESSION["adv_$uid"] = $tickets;
             $result['success'] = sprintf(__("Search criteria matched %s"),
-                    sprintf(_N('%d ticket', '%d tickets'), count($tickets),
-                        $tickets))
+                    sprintf(_N('%d ticket', '%d tickets', count($tickets)), count($tickets)
+                ))
                 . " - <a href='tickets.php?advsid=$uid'>".__('view')."</a>";
         } else {
             $result['fail']=__('No tickets found matching your search criteria.');
-- 
GitLab