From: Alan Date: Fri, 7 Oct 2022 03:33:04 +0000 (+0800) Subject: fix missing var issue X-Git-Url: http://git.roojs.org/?p=Pman.Cms;a=commitdiff_plain;h=0fd7a042d3e1ab8a7e3c883b597bf90ec682e921 fix missing var issue --- diff --git a/PageThumb.php b/PageThumb.php index db19d611..83decb43 100644 --- a/PageThumb.php +++ b/PageThumb.php @@ -22,8 +22,8 @@ class Pman_Cms_PageThumb extends Pman if($cms_page->page_type_id_name != 'page'){ $this->serve($file_broken); } - - $opts = HTML_FlexyFramework::get()->Pman_Cms; + $ff = HTML_FlexyFramework::get(); + $opts = isset($ff->Pman_Cms) ? $ff->Pman_Cms : array(); if (!isset($opts['basePHP'])) { $this->serve($file_broken);