Index: trunk/core/kernel/db/dblist.php =================================================================== diff -u -N -r2910 -r3559 --- trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 2910) +++ trunk/core/kernel/db/dblist.php (.../dblist.php) (revision 3559) @@ -271,12 +271,12 @@ $this->RecordsCount = (int)$this->Conn->GetOne($sql); } - $system_sql = $this->GetSelectSQL(true,true); - if($system_sql == $all_sql) //no need to query the same again - { - $this->NoFilterCount = $this->RecordsCount; - return; - } + $system_sql = $this->GetSelectSQL(true,true); + if($system_sql == $all_sql) //no need to query the same again + { + $this->NoFilterCount = $this->RecordsCount; + return; + } $sql = $this->getCountSQL($system_sql); if( $this->GetGroupClause() )