diff options
| author | Fredrick Brennan <admin@8chan.co> | 2014-09-20 16:49:32 +0000 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-09-20 16:49:32 +0000 |
| commit | 7288f1dec786844a159af30f0286be5912b13db6 (patch) | |
| tree | 61b7faf00541100282d666b86cb31f543f10ac1f /inc/bans.php | |
| parent | 23c73ca83943fb720addebe461286bc4ff3679b9 (diff) | |
Fix last commit
Diffstat (limited to 'inc/bans.php')
| -rw-r--r-- | inc/bans.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/bans.php b/inc/bans.php index c5132ef3..ed81c6e4 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -122,9 +122,9 @@ class Bans { $query = prepare('SELECT ``bans``.*' . ($get_mod_info ? ', `username`' : '') . ' FROM ``bans`` ' . ($get_mod_info ? 'LEFT JOIN ``mods`` ON ``mods``.`id` = `creator`' : '') . ' - WHERE ' . ($id ? 'id = :id' : ' + WHERE (' . ($board !== false ? '(`board` IS NULL OR `board` = :board) AND' : '') . ' - (`ipstart` = :ip OR (:ip >= `ipstart` AND :ip <= `ipend`)))') . ' + (`ipstart` = :ip OR (:ip >= `ipstart` AND :ip <= `ipend`))) ORDER BY `expires` IS NULL, `expires` DESC'); if ($board !== false) |
