summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-03-22 20:12:23 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-03-22 20:12:23 +0100
commitaf6f34489a9dc6b22cc9fe02eb53e13014ced38f (patch)
treef25fa1a24da48538f6f146ef1a3b2d93c53a0222 /system
parent1b6b34aea281c03ee7514fadf780e2592f2e7050 (diff)
->db->count_all_results() will now return an integer instead of a string.
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_active_rec.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index ee72dbbf4..db8471364 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -1020,11 +1020,11 @@ class CI_DB_active_record extends CI_DB_driver {
if ($query->num_rows() == 0)
{
- return '0';
+ return 0;
}
$row = $query->row();
- return $row->numrows;
+ return (int) $row->numrows;
}
// --------------------------------------------------------------------