Index: trunk/core/units/visits/visits_list.php =================================================================== diff -u -N --- trunk/core/units/visits/visits_list.php (revision 6093) +++ trunk/core/units/visits/visits_list.php (revision 0) @@ -1,60 +0,0 @@ -GetSelectSQL(true,true); - $sql = $this->getCountSQL($system_sql); - if( $this->GetGroupClause() ) - { - if (!isset($this->OriginalParams['types']) && $this->Special == 'incommerce') { - //$sql = preg_replace('/GROUP BY.*/', '', $sql); - $sql = 'SELECT COUNT(*) FROM '.$this->TableName; - $this->NoFilterCount = (int)$this->Conn->GetOne($sql); - } - else { - $this->NoFilterCount = count( $this->Conn->GetCol($sql) ); - } - } - else - { - $this->NoFilterCount = (int)$this->Conn->GetOne($sql); - } - - $all_sql = $this->GetSelectSQL(true,false); - if($system_sql == $all_sql) //no need to query the same again - { - $this->RecordsCount = $this->NoFilterCount; - return; - } - - $sql = $this->getCountSQL($all_sql); - - if( $this->GetGroupClause() ) - { - $this->RecordsCount = count( $this->Conn->GetCol($sql) ); - } - else - { - $this->RecordsCount = (int)$this->Conn->GetOne($sql); - } - - - - $this->Counted = true; - } - -} \ No newline at end of file