1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 07:34:22 +02:00

Entries Manager: fix notice if no fieldsets

This commit is contained in:
Awilum
2018-12-28 00:02:37 +03:00
parent ca70f637e0
commit 7fbbd79526

View File

@@ -303,7 +303,7 @@ class EntriesManager
}
// Fieldset for current entry template
$fieldset_path = PATH['themes'] . '/' . Registry::get('settings.theme') . '/fieldsets/' . $entry['fieldset'] . '.yaml';
$fieldset_path = PATH['themes'] . '/' . Registry::get('settings.theme') . '/fieldsets/' . (isset($entry['fieldset']) ? $entry['fieldset'] : 'default') . '.yaml';
$fieldset = YamlParser::decode(Filesystem::getFileContent($fieldset_path));
is_null($fieldset) and $fieldset = [];