mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +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);
|
$new_data .= ($this->pdo == true && $ftype !='cmd') ? "`{$fn}`= :". $fn : "`{$fn}`=".$this->_getFieldValue($fn, $fv, $fieldTypes);
|
||||||
|
|
||||||
if($fv == '_NULL_')
|
if($fv === '_NULL_')
|
||||||
{
|
{
|
||||||
$ftype = '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';
|
$type = 'null';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user