diff --git a/nntmux/Regexes.php b/nntmux/Regexes.php index e491a38d9..d922dde63 100755 --- a/nntmux/Regexes.php +++ b/nntmux/Regexes.php @@ -268,7 +268,7 @@ class Regexes 'old_name' => $row['searchname'], 'new_name' => $match ]; - if ($displayLimit > 0 && $limit++ > $displayLimit) { + if ((int)$displayLimit > 0 && $limit++ >= (int)$displayLimit) { break; } }