Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

simplifiy count_all_results method

  • Loading branch information...
commit 052a155df579864ac93edcf7a09f65bc92ee7e74 1 parent 902b6b7
Timothy Warren authored

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. +1 5 classes/query_builder.php
6 classes/query_builder.php
@@ -1082,12 +1082,8 @@ public function count_all_results($table='')
1082 1082 $this->_reset();
1083 1083
1084 1084 $rows = $result->fetchAll();
1085   - $count = count($rows);
1086 1085
1087   - // Unset rows to save memory
1088   - $rows = NULL;
1089   -
1090   - return (int) $count;
  1086 + return (int) count($rows);
1091 1087 }
1092 1088
1093 1089 // --------------------------------------------------------------------------

0 comments on commit 052a155

Please sign in to comment.
Something went wrong with that request. Please try again.