diff options
| author | benwaffle <iofelben@gmail.com> | 2014-02-22 15:29:56 +0100 |
|---|---|---|
| committer | benwaffle <iofelben@gmail.com> | 2014-02-22 15:29:56 +0100 |
| commit | ebcdeda3d04fd48108bcb4616c7d7b81aa194e71 (patch) | |
| tree | 2bbbab412ed70864e407b47c05e1acf9ffd8570c /moe/includes | |
| parent | 3373fc351e75d87c8a0ed38024baf609a13e853a (diff) | |
Update core.php
http://moe.pomf.se/includes/api.php?do=search&q= currently returns 5 entries, though it shouldn't
Diffstat (limited to 'moe/includes')
| -rw-r--r-- | moe/includes/core.php | 2 |
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'){ |
