mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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:
parent
8291dbf4d3
commit
9f4fa49068
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user