summaryrefslogtreecommitdiffstats
path: root/system/drivers/DB_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/drivers/DB_driver.php')
-rw-r--r--system/drivers/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/drivers/DB_driver.php b/system/drivers/DB_driver.php
index 0c2084ad8..5fcb04a00 100644
--- a/system/drivers/DB_driver.php
+++ b/system/drivers/DB_driver.php
@@ -352,7 +352,7 @@ class CI_DB_driver {
*/
function escape($str)
{
- if ( ! ctype_digit($str)) // bug fix to ensure that numbers are not treated as strings.
+ if ( ! is_numeric($str)) // bug fix to ensure that numbers are not treated as strings.
{
switch (gettype($str))
{