mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Fix for odd PHP behavior on $fieldType == '_NULL_'.
This commit is contained in:
@@ -1222,7 +1222,8 @@ class e_db_mysql
|
|||||||
private function _getPDOValue($type, $fieldValue)
|
private function _getPDOValue($type, $fieldValue)
|
||||||
{
|
{
|
||||||
|
|
||||||
if($fieldValue == '_NULL_')
|
|
||||||
|
if(is_string($fieldValue) && ($fieldValue == '_NULL_'))
|
||||||
{
|
{
|
||||||
$type = 'null';
|
$type = 'null';
|
||||||
}
|
}
|
||||||
@@ -2801,6 +2802,7 @@ class e_db_mysql
|
|||||||
$mes->addDebug("Error writing file: ".e_CACHE_DB.$tableName.'.php'); //Fix for during v1.x -> 2.x upgrade.
|
$mes->addDebug("Error writing file: ".e_CACHE_DB.$tableName.'.php'); //Fix for during v1.x -> 2.x upgrade.
|
||||||
// echo "Error writing file: ".e_CACHE_DB.$tableName.'.php'.'<br />';
|
// echo "Error writing file: ".e_CACHE_DB.$tableName.'.php'.'<br />';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user