1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Another fix for _NULL_ types

This commit is contained in:
mcfly
2008-11-29 18:22:46 +00:00
parent 6584434317
commit 480b484b7c

View File

@@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
| $Revision: 1.29 $ | $Revision: 1.30 $
| $Date: 2008-11-29 18:09:51 $ | $Date: 2008-11-29 18:22:46 $
| $Author: mcfly_e107 $ | $Author: mcfly_e107 $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
@@ -30,7 +30,7 @@ $db_ConnectionID = NULL; // Stores ID for the first DB connection used - which s
* MySQL Abstraction class * MySQL Abstraction class
* *
* @package e107 * @package e107
* @version $Revision: 1.29 $ * @version $Revision: 1.30 $
* @author $Author: mcfly_e107 $ * @author $Author: mcfly_e107 $
*/ */
class db { class db {
@@ -430,7 +430,7 @@ class db {
*/ */
function _getFieldValue($fieldKey, $fieldValue, &$fieldTypes) function _getFieldValue($fieldKey, $fieldValue, &$fieldTypes)
{ {
if($fieldValue == '_NULL_') { return 'NULL';} if($fieldValue === '_NULL_') { return 'NULL';}
$type = (isset($fieldTypes[$fieldKey]) ? $fieldTypes[$fieldKey] : $fieldTypes['_DEFAULT']); $type = (isset($fieldTypes[$fieldKey]) ? $fieldTypes[$fieldKey] : $fieldTypes['_DEFAULT']);
switch ($type) switch ($type)