Reset searchTerms[] before populating.
commit3b7a00358976832d402ee7f5b47fdd1024ddebef
authorChad Horohoe <chadh@wikimedia.org>
Fri, 5 Sep 2014 13:51:27 +0000 (5 06:51 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 5 Sep 2014 13:51:27 +0000 (5 06:51 -0700)
tree1938b554d8bd67f05edec093628dd1555eed6ec2
parent6b9a1c6d5b96dd55b05b9db5d4ab864973b7ff8f
Reset searchTerms[] before populating.

Otherwise, multiple calls to searchQuery() would accumulate search
terms. searchTerms[] is defined in SearchEngine so we can't just get
rid of it altogether.

Change-Id: Iddbb3920e3a9d5849c99fe90d2d725d16019b51d
includes/search/SearchPostgres.php