- Fixed a bug within sections if it doesn't exist first
This commit is contained in:
parent
5bac6cd843
commit
58766decaf
|
@ -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']);
|
||||
|
||||
|
|
Loading…
Reference in New Issue