commit | af6f34489a9dc6b22cc9fe02eb53e13014ced38f | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Tue Mar 22 19:12:23 2011 +0000 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Tue Mar 22 19:12:23 2011 +0000 |
tree | f25fa1a24da48538f6f146ef1a3b2d93c53a0222 | |
parent | 1b6b34aea281c03ee7514fadf780e2592f2e7050 [diff] [blame] |
->db->count_all_results() will now return an integer instead of a string.
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index ee72dbb..db84713 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php
@@ -1020,11 +1020,11 @@ if ($query->num_rows() == 0) { - return '0'; + return 0; } $row = $query->row(); - return $row->numrows; + return (int) $row->numrows; } // --------------------------------------------------------------------