From 9030334c1075409ac099f6d77723a606bedf97b7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 6 Aug 2016 11:22:16 -0700 Subject: [PATCH] MySQL: Fix for null type detection. --- e107_handlers/mysql_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 58d60d922..264dfbaa6 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -1076,7 +1076,7 @@ class e_db_mysql $new_data .= ($this->pdo == true && $ftype !='cmd') ? "`{$fn}`= :". $fn : "`{$fn}`=".$this->_getFieldValue($fn, $fv, $fieldTypes); - if($fv == '_NULL_') + if($fv === '_NULL_') { $ftype = 'null'; } @@ -1272,7 +1272,7 @@ class e_db_mysql { - if(is_string($fieldValue) && ($fieldValue == '_NULL_')) + if(is_string($fieldValue) && ($fieldValue === '_NULL_')) { $type = 'null'; }