simplifiy count_all_results method

This commit is contained in:
Timothy Warren 2012-04-17 11:43:06 -04:00
parent 902b6b7cb3
commit 052a155df5

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