Browse Source

fix: error when no 'customVars' was set

master
Dominik Schmidt-Philipp 1 month ago
parent
commit
b82e30cc8f
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      app/controller/page.php

+ 6
- 4
app/controller/page.php View File

@@ -96,11 +96,13 @@ class Page {

$folder->prepare_files();

foreach($f3->get('customVars') as $key=>$value) {
$f3->set($key,$value);
$this->register_key($key,$folder);
if ( null !== $f3->get('customVars')) {
foreach($f3->get('customVars') as $key=>$value) {
$f3->set($key,$value);
$this->register_key($key,$folder);
}
}
$folder->fill_content();

foreach($f3->get('siteColors') as $k=>$v){

Loading…
Cancel
Save