From 052a155df579864ac93edcf7a09f65bc92ee7e74 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 17 Apr 2012 11:43:06 -0400 Subject: [PATCH] simplifiy count_all_results method --- classes/query_builder.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/classes/query_builder.php b/classes/query_builder.php index 0ee79a1..39c21c5 100644 --- a/classes/query_builder.php +++ b/classes/query_builder.php @@ -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); } // --------------------------------------------------------------------------