From 0fd7a042d3e1ab8a7e3c883b597bf90ec682e921 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 7 Oct 2022 11:33:04 +0800 Subject: [PATCH] fix missing var issue --- PageThumb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2