Fixed a bug with the menu not working for non-recurring products

This commit is contained in:
Scott Luther 2009-03-26 03:21:16 -07:00
parent d1547673dc
commit 062c11729b

View File

@ -15,7 +15,7 @@
* @license http://www.agileco.com/agilebill/license1-4.txt
* @author Tony Landis <tony@agileco.com>
* @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());
}
}