diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-04-29 01:18:00 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-04-29 01:18:00 +0200 |
commit | b94b89c69195a0708add8dedb1721f12bcafbf8c (patch) | |
tree | bb431084a58830ffcc8dd6216bea8eb2c8372e13 /system/database | |
parent | 05f830c7105ef3cd4a8388bffe7cf73c35236105 (diff) |
Added a valid_emails rule to the Validation class.
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/drivers/mysql/mysql_driver.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php index 2bc66ecf2..f435c0bc4 100644 --- a/system/database/drivers/mysql/mysql_driver.php +++ b/system/database/drivers/mysql/mysql_driver.php @@ -314,11 +314,8 @@ class CI_DB_mysql_driver extends CI_DB { $query = $this->query($this->_count_string . $this->_protect_identifiers('numrows'). " FROM " . $this->_protect_identifiers($this->dbprefix.$table));
- if ($query->num_rows() == 0)
- return '0';
-
$row = $query->row();
- return $row->numrows;
+ return (int)$row->numrows;
}
// --------------------------------------------------------------------
|