simplifiy count_all_results method
This commit is contained in:
parent
902b6b7cb3
commit
052a155df5
@ -1082,12 +1082,8 @@ class Query_Builder {
|
||||
$this->_reset();
|
||||
|
||||
$rows = $result->fetchAll();
|
||||
$count = count($rows);
|
||||
|
||||
// Unset rows to save memory
|
||||
$rows = NULL;
|
||||
|
||||
return (int) $count;
|
||||
return (int) count($rows);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user