From b0629f4a36d10e3387aacbb675c0c641a347271b Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 31 Jul 2023 15:33:42 +0800 Subject: [PATCH] no db logging if no db. --- Pman.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pman.php b/Pman.php index fd17b43..978c774 100644 --- a/Pman.php +++ b/Pman.php @@ -505,8 +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; - if ($type !== false) { + if ($type !== false && empty($pman['nodatabase'])) { if(!empty($errors)){ DB_DataObject::factory('Events')->writeEventLogExtra($errors); -- 2.39.2