summaryrefslogtreecommitdiff
path: root/moe/includes
diff options
context:
space:
mode:
authorNeku <neku@pomf.se>2014-02-22 15:50:52 +0100
committerNeku <neku@pomf.se>2014-02-22 15:50:52 +0100
commit05219c12c0b299d7118d87d262597674b2092bab (patch)
tree2bbbab412ed70864e407b47c05e1acf9ffd8570c /moe/includes
parent3373fc351e75d87c8a0ed38024baf609a13e853a (diff)
parentebcdeda3d04fd48108bcb4616c7d7b81aa194e71 (diff)
Merge pull request #5 from benwaffle/patch-2
Update core.php
Diffstat (limited to 'moe/includes')
-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'){