Explorar el Código

fix: error when no 'customVars' was set

master
Dominik Schmidt-Philipp hace 1 mes
padre
commit
b82e30cc8f
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. +6
    -4
      app/controller/page.php

+ 6
- 4
app/controller/page.php Ver fichero

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

Cargando…
Cancelar
Guardar