Index: includes/api_bug.php =================================================================== --- includes/api_bug.php (revision 1523) +++ includes/api_bug.php (revision 1524) @@ -85,17 +85,16 @@ * Subclassed set() that will intercept any custom fields and handle * them appropriately, but everyting else will be passed to the parent. */ - function set() + function set($field, $value, $doclean = true, $doverify = true) { - $args = func_get_args(); - // it's a custom field, so add it in - if (preg_match('#^custom#', $args[0]) == 1 AND !isset($this->fields["$args[0]"])) + if (preg_match('#^custom#', $field) == 1 AND !isset($this->fields["$field"])) { - $this->fields["$args[0]"] = array(TYPE_STR, REQ_NO); + $this->fields["$field"] = array(TYPE_STR, REQ_NO); } - call_user_func_array(array($this, 'parent::set'), $args); + // TODO - (r1524) one day we can change this back to call_user_func_array(array($this, 'parent::set'), func_get_args()) + parent::set($field, $value, $doclean, $doverify); } // ###################################################################