1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

MySQL: Fix for null type detection.

This commit is contained in:
Cameron
2016-08-06 11:22:16 -07:00
parent dfd6f9ea13
commit 9030334c10

View File

@@ -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';
}