Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplifiy count_all_results method

  • Loading branch information...
commit 052a155df579864ac93edcf7a09f65bc92ee7e74 1 parent 902b6b7
@timw4mail authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 classes/query_builder.php
View
6 classes/query_builder.php
@@ -1082,12 +1082,8 @@ public function count_all_results($table='')
$this->_reset();
$rows = $result->fetchAll();
- $count = count($rows);
- // Unset rows to save memory
- $rows = NULL;
-
- return (int) $count;
+ return (int) count($rows);
}
// --------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.