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:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user