From 011c06f94a1e87b15a3cf36e070dcbaf56c3344e Mon Sep 17 00:00:00 2001 From: dugite-code Date: Thu, 4 Mar 2021 11:40:06 +0800 Subject: [PATCH] fix array Undefined array key "verbose" --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.php b/init.php index 3a60822..f560e3b 100644 --- a/init.php +++ b/init.php @@ -748,7 +748,7 @@ function arrayRecursiveDiff($aArray1, $aArray2) { */ function test() { - Feediron_Logger::get()->set_log_level($_POST['verbose']?Feediron_Logger::LOG_VERBOSE:Feediron_Logger::LOG_TEST); + Feediron_Logger::get()->set_log_level(array_key_exists('verbose', $_POST)?Feediron_Logger::LOG_VERBOSE:Feediron_Logger::LOG_TEST); $test_url = $_POST['test_url']; Feediron_Logger::get()->log(Feediron_Logger::LOG_TTRSS, "Test url: $test_url");