- Fixed a bug within sections if it doesn't exist first

This commit is contained in:
Dave M. 2023-01-26 13:36:38 +00:00
parent 5bac6cd843
commit 58766decaf
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ if (! class_exists("%NAMESPACE%\%CLASSNAME%", false) ) {
$result = [];
foreach([ 'prepend', 'default', 'append' ] as $item) {
if ( ! is_array($this->sectionList[$name][$item]) ) continue;
if ( !isset($this->sectionList[$name][$item]) || ! is_array($this->sectionList[$name][$item]) ) continue;
usort($this->sectionList[$name][$item], fn($a, $b) => $a['order'] <=> $b['order']);