From e1c23237a4e0d924a3a61df8cc013fa502199dbe Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 1 Aug 2023 13:28:52 +0800 Subject: [PATCH] no database flag --- Pman.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.php b/Pman.php index 978c774..277bf4b 100644 --- a/Pman.php +++ b/Pman.php @@ -505,9 +505,9 @@ class Pman extends HTML_FlexyFramework_Page if ($cli) { echo "ERROR: " .$str . "\n"; // print the error first, as DB might fail.. } - $pman = HTML_FlexyFramework::get()->Pman; + $pman = HTML_FlexyFramework::get(); - if ($type !== false && empty($pman['nodatabase'])) { + if ($type !== false && empty($pman->nodatabase)) { if(!empty($errors)){ DB_DataObject::factory('Events')->writeEventLogExtra($errors); -- 2.39.2