This commit is contained in:
Isaac Connor 2020-07-25 14:31:57 -04:00
parent 4af343e833
commit 99d7aa0da0
1 changed files with 0 additions and 3 deletions

View File

@ -245,9 +245,6 @@ class ZM_Object {
}
} else if ( property_exists($this, $field) ) {
$type = (array_key_exists($field, $this->defaults) && is_array($this->defaults[$field])) ? $this->defaults[$field]['type'] : 'scalar';
(is_array($this->{$field}) ? implode(',',$this->{$field}) : $this->{$field}) . ' ?= ' .
(is_array($value) ? implode(',', $value) : $value)
);
if ( $type == 'set' ) {
$old_value = is_array($this->$field) ? $this->$field : explode(',', $this->$field);
$new_value = is_array($value) ? $value : explode(',', $value);