From efeef5f70ec380f5198b1b0188d3f6a4fba50546 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 28 Jan 2013 16:09:17 +0100 Subject: [PATCH] Change search term requirements --- frontend/modules/api/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/modules/api/search.php b/frontend/modules/api/search.php index 7adfdac..943b545 100644 --- a/frontend/modules/api/search.php +++ b/frontend/modules/api/search.php @@ -31,7 +31,7 @@ else { $db_query_terms[] = "`Title` LIKE ?"; $term = str_replace("%", "\%", $term); - $valid_term = $valid_term || (strlen($term) > 2); + $valid_term = $valid_term || (strlen($term) >= 2); $db_query_arguments[] = "%{$term}%"; }