simplifiy count_all_results method

This commit is contained in:
Timothy Warren 2012-04-17 11:43:06 -04:00
parent 902b6b7cb3
commit 052a155df5
1 changed files with 1 additions and 5 deletions

View File

@ -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);
}
// --------------------------------------------------------------------------