From 062c11729bf083a1eb8d07a640642069f3d5b1a4 Mon Sep 17 00:00:00 2001 From: Scott Luther Date: Thu, 26 Mar 2009 03:21:16 -0700 Subject: [PATCH] Fixed a bug with the menu not working for non-recurring products --- modules/core/database_add.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/database_add.inc.php b/modules/core/database_add.inc.php index a5c4b238..16f8a5ab 100644 --- a/modules/core/database_add.inc.php +++ b/modules/core/database_add.inc.php @@ -15,7 +15,7 @@ * @license http://www.agileco.com/agilebill/license1-4.txt * @author Tony Landis * @package AgileBill - * @version 1.4.93 + * @version 1.4.94 */ function CORE_database_add($VAR, $construct, $type) @@ -153,8 +153,8 @@ function CORE_database_add($VAR, $construct, $type) $insert_value = $validate->convert($field_name, $insert_value, $construct->field["$value"]["convert"]); # create the sql statement - if(!empty($insert_value)) - $field_list .= ", " . $value . "=" . $db->qstr($insert_value, get_magic_quotes_gpc()); + if(!is_null($insert_value)) + $field_list .= ", " . $value . "=" . $db->qstr($insert_value, get_magic_quotes_gpc()); } }