diff --git a/admin/inc/class.admin_cmd_customfield.inc.php b/admin/inc/class.admin_cmd_customfield.inc.php index db10aad2ca..69cc696170 100644 --- a/admin/inc/class.admin_cmd_customfield.inc.php +++ b/admin/inc/class.admin_cmd_customfield.inc.php @@ -97,6 +97,11 @@ class admin_cmd_customfield extends admin_cmd unset($set[$key]); unset($old[$key]); } + else + { + // Make sure it's a string, not an int + $set[$key] = ''.$value; + } } } $this->set = $set;