diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 1ba4ab30..a6e0a0fd 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2218,7 +2218,7 @@ function mod_deletebyip($boardName, $post, $global = false) { error("The following IP is protected by the deletebyip_excluded_ips configuration ".$ip); } - $threadFilter = $config['deletebyip_exclude_threads'] ? "" : "AND `thread` IS NOT NULL"; + $threadFilter = $config['deletebyip_exclude_threads'] ? "AND `thread` IS NOT NULL" : ""; $boards = $global ? listBoards() : array(array('uri' => $boardName));