Fixes a bug where saving a content block from the CMS back-end creates an empty [components] section in the file settings area.

This commit is contained in:
alekseybobkov 2014-09-06 21:52:42 -07:00
parent 8291dbf4d3
commit 9f4fa49068

View File

@ -188,6 +188,9 @@ class CmsCompoundObject extends CmsObject
$trim($this->settings);
if (array_key_exists('components', $this->settings) && count($this->settings['components']) == 0)
unset($this->settings['components']);
$this->validate();
$content = [];