Index: branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php =================================================================== diff -u -r6853 -r7035 --- branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php (.../dblist.php) (revision 6853) +++ branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php (.../dblist.php) (revision 7035) @@ -251,9 +251,11 @@ $all_sql = $this->GetSelectSQL(true,false); $sql = $this->getCountSQL($all_sql); + $this->Counted = true; + if( $this->GetGroupClause() ) { - $this->RecordsCount = count( $this->Conn->GetCol($sql) ); + $this->RecordsCount = count( $this->Conn->GetCol($sql) ); } else { @@ -276,8 +278,6 @@ { $this->NoFilterCount = (int)$this->Conn->GetOne($sql); } - - $this->Counted = true; } function getCountSQL($sql)