Handle no default set for array defaults. Fixes Warning when saving WebSite type Monitors
This commit is contained in:
parent
9dbeaa2c7b
commit
683bf3f982
|
@ -249,7 +249,7 @@ class ZM_Object {
|
|||
}
|
||||
}
|
||||
} else if ( array_key_exists($field, $this->defaults) ) {
|
||||
if ( is_array($this->defaults[$field]) ) {
|
||||
if ( is_array($this->defaults[$field]) and isset($this->defaults[$field]['default']) ) {
|
||||
$default = $this->defaults[$field]['default'];
|
||||
} else {
|
||||
$default = $this->defaults[$field];
|
||||
|
|
Loading…
Reference in New Issue