diff --git a/classes/prettyblocks/core/FieldCore.php b/classes/prettyblocks/core/FieldCore.php index 5372f1de..2c90595f 100644 --- a/classes/prettyblocks/core/FieldCore.php +++ b/classes/prettyblocks/core/FieldCore.php @@ -605,7 +605,7 @@ public function formatFieldSelectorForFront() return $this->_getCollection($idCollection, $this->collection); } // if value doesn't exists in DB and new value is set - if ($this->force_default_value && $this->new_value == '') { + if ($this->force_default_value && $this->new_value === '' && is_array($this->default) && isset($this->default['show']['id'])) { $idCollection = (int) $this->default['show']['id']; return $this->_getCollection($idCollection, $this->collection);