Skip to content

Commit

Permalink
fix array Undefined array key "verbose"
Browse files Browse the repository at this point in the history
  • Loading branch information
dugite-code committed Mar 4, 2021
1 parent 70de0d5 commit 011c06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 011c06f

Please sign in to comment.