瀏覽代碼

fix: error when no 'customVars' was set

master
Dominik Schmidt-Philipp 1 月之前
父節點
當前提交
b82e30cc8f
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. +6
    -4
      app/controller/page.php

+ 6
- 4
app/controller/page.php 查看文件

@@ -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…
取消
儲存