summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'){