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

Empty values on todb type are now handled correctly

This commit is contained in:
mcfly
2008-11-29 18:09:51 +00:00
parent f50a1f434d
commit 6584434317

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.28 $ | $Revision: 1.29 $
| $Date: 2008-11-29 01:24:27 $ | $Date: 2008-11-29 18:09:51 $
| $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.28 $ * @version $Revision: 1.29 $
* @author $Author: mcfly_e107 $ * @author $Author: mcfly_e107 $
*/ */
class db { class db {
@@ -449,7 +449,7 @@ class db {
case 'todb': case 'todb':
default: default:
if($fieldValue == '') { return ''; } if($fieldValue == '') { return "''"; }
$e107 = e107::getInstance(); $e107 = e107::getInstance();
return "'".$e107->tp->toDB($fieldValue)."'"; return "'".$e107->tp->toDB($fieldValue)."'";
break; break;