diff --git a/Changelog b/Changelog index 9c6a1a655..d481259f9 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-01-31 DariusIII + * Fix: Fix count of regexes for pager in Regexes class * Chg: Add option to fixtures up/down commands to specifiy which table fixtures to truncate or add * Chg: Update some faulty regexes * Chg: Update composer.lock diff --git a/nntmux/Regexes.php b/nntmux/Regexes.php index 2d2d1af6f..74549994c 100755 --- a/nntmux/Regexes.php +++ b/nntmux/Regexes.php @@ -134,7 +134,7 @@ class Regexes } /** - * Get the \count of regex in the DB. + * Get the count of regex in the DB. * * @param string $group_regex Optional, keyword to find a group. * @@ -144,13 +144,13 @@ class Regexes { $query = $this->pdo->queryOneRow( sprintf( - 'SELECT COUNT(id) AS \count FROM %s %s', + 'SELECT COUNT(id) AS count FROM %s %s', $this->tableName, $this->_groupQueryString($group_regex) ) ); - return (int) $query['\count']; + return (int) $query['count']; } /**