Merge branch 'master' of https://git.mcnd.ca/mcndave/picea
This commit is contained in:
commit
84020a871c
|
@ -70,7 +70,7 @@ if (! class_exists("%NAMESPACE%\%CLASSNAME%", false) ) {
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
foreach([ 'prepend', 'default', 'append' ] as $item) {
|
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']);
|
usort($this->sectionList[$name][$item], fn($a, $b) => $a['order'] <=> $b['order']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue