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