From 8435771a6f831fece5d4267e97c5e9c361dcb70b Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 18 Jan 2008 15:52:48 +0000 Subject: fixed bug #3260 tightened type checking before outputting MySQL field as NULL --- system/database/drivers/mysql/mysql_utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database/drivers/mysql/mysql_utility.php') 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'; } -- cgit v1.2.3-24-g4f1b