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:
@@ -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 = [];
|
||||
|
||||
|
Reference in New Issue
Block a user