From 4353d35c0a17b521b502a56f897abad7df30a0cb Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Sun, 27 Mar 2016 10:23:11 +0100 Subject: [PATCH] Fix code docs for SQLSelect::count() --- model/queries/SQLSelect.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/model/queries/SQLSelect.php b/model/queries/SQLSelect.php index ba3ed74fb..7af2c32a5 100644 --- a/model/queries/SQLSelect.php +++ b/model/queries/SQLSelect.php @@ -568,14 +568,12 @@ class SQLSelect extends SQLConditionalExpression { /** - * Return the number of rows in this query if the limit were removed. Useful in paged data sets. - * - * @todo Respect HAVING and GROUPBY, which can affect the result-count + * Return the number of rows in this query, respecting limit and offset. * * @param string $column Quoted, escaped column name * @return int */ - public function count( $column = null) { + public function count($column = null) { // we can't clear the select if we're relying on its output by a HAVING clause if(!empty($this->having)) { $records = $this->execute();