Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed php warning for editor new page templates dropdown if folder key is missing

givanzae790bfc4089
diff --git a/admin/template/editor/editor.tpl b/admin/template/editor/editor.tpl
index 227b4a7..cd34fa0 100755
--- a/admin/template/editor/editor.tpl
+++ b/admin/template/editor/editor.tpl
@@ -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) . '">';
}