From ebcdeda3d04fd48108bcb4616c7d7b81aa194e71 Mon Sep 17 00:00:00 2001 From: benwaffle Date: Sat, 22 Feb 2014 09:29:56 -0500 Subject: Update core.php http://moe.pomf.se/includes/api.php?do=search&q= currently returns 5 entries, though it shouldn't --- moe/includes/core.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'moe/includes') diff --git a/moe/includes/core.php b/moe/includes/core.php index 4a5c61d..00ff6a6 100644 --- a/moe/includes/core.php +++ b/moe/includes/core.php @@ -43,6 +43,8 @@ function login ($email, $pass) { } function search ($word) { + if(empty($word)) return; + global $db; $str = "%".$word."%"; if($_SESSION['level'] === '1'){ -- cgit v1.2.3