Skip to content

Commit

Permalink
Fixed php warning for editor new page templates dropdown if folder ke…
Browse files Browse the repository at this point in the history
…y is missing
  • Loading branch information
givanz committed Mar 24, 2024
1 parent 3a2cfc6 commit ae790bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/template/editor/editor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (isset($this->$name)) {
$options = $this->$name;
foreach($options as $key => $option){
if ($optgroup != $option['folder']) {
if (isset($option['folder']) && ($optgroup != $option['folder'])) {
$optgroup = $option['folder'];
echo '<optgroup label="' . ucfirst($optgroup) . '">';
}
Expand Down

0 comments on commit ae790bf

Please sign in to comment.