summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenwaffle <iofelben@gmail.com>2014-02-22 15:29:56 +0100
committerbenwaffle <iofelben@gmail.com>2014-02-22 15:29:56 +0100
commitebcdeda3d04fd48108bcb4616c7d7b81aa194e71 (patch)
tree2bbbab412ed70864e407b47c05e1acf9ffd8570c
parent3373fc351e75d87c8a0ed38024baf609a13e853a (diff)
Update core.php
http://moe.pomf.se/includes/api.php?do=search&q= currently returns 5 entries, though it shouldn't
-rw-r--r--moe/includes/core.php2
1 files changed, 2 insertions, 0 deletions
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'){