diff options
Diffstat (limited to 'system/database/drivers')
-rw-r--r-- | system/database/drivers/mysql/mysql_utility.php | 2 | ||||
-rw-r--r-- | system/database/drivers/mysqli/mysqli_utility.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php index c24a008fa..3c5b94013 100644 --- a/system/database/drivers/mysql/mysql_utility.php +++ b/system/database/drivers/mysql/mysql_utility.php @@ -179,7 +179,7 @@ class CI_DB_mysql_utility extends CI_DB_utility { $v = str_replace('\\\t', '\t', $v);
// Is the value NULL?
- if ($v == NULL)
+ if ($v === NULL)
{
$val_str .= 'NULL';
}
diff --git a/system/database/drivers/mysqli/mysqli_utility.php b/system/database/drivers/mysqli/mysqli_utility.php index 1d910638f..3c9094611 100644 --- a/system/database/drivers/mysqli/mysqli_utility.php +++ b/system/database/drivers/mysqli/mysqli_utility.php @@ -180,7 +180,7 @@ class CI_DB_mysqli_utility extends CI_DB_utility { $v = str_replace('\\\t', '\t', $v);
// Is the value NULL?
- if ($v == NULL)
+ if ($v === NULL)
{
$val_str .= 'NULL';
}
|