Pārlūkot izejas kodu

fix: error when no 'customVars' was set

master
Dominik Schmidt-Philipp pirms 1 mēnesi
vecāks
revīzija
b82e30cc8f
1 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. +6
    -4
      app/controller/page.php

+ 6
- 4
app/controller/page.php Parādīt failu

@@ -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){

Notiek ielāde…
Atcelt
Saglabāt