From: Alan Date: Fri, 7 Oct 2022 06:38:56 +0000 (+0800) Subject: fix warning X-Git-Url: http://git.roojs.org/?p=Pman.Cms;a=commitdiff_plain;h=5f099172e5b3cd2f3c7cd6b04e090d4eb50cf555 fix warning --- diff --git a/PageThumb.php b/PageThumb.php index 83decb43..4c7e3b95 100644 --- a/PageThumb.php +++ b/PageThumb.php @@ -19,7 +19,7 @@ class Pman_Cms_PageThumb extends Pman $cms_page = $cms_page->parent(); } - if($cms_page->page_type_id_name != 'page'){ + if(empty($cms_page->page_type_id_name) || $cms_page->page_type_id_name != 'page') { $this->serve($file_broken); } $ff = HTML_FlexyFramework::get();