From 6fd453914182a79ec6fe754aad5fda2fe403276a Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sun, 12 Aug 2018 12:33:57 +0200 Subject: [PATCH] baculum: Fix logging output if it is not possible to decode to json --- gui/baculum/protected/API/Class/JSONTools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/baculum/protected/API/Class/JSONTools.php b/gui/baculum/protected/API/Class/JSONTools.php index d63e0f24b..9b456c6bd 100644 --- a/gui/baculum/protected/API/Class/JSONTools.php +++ b/gui/baculum/protected/API/Class/JSONTools.php @@ -45,7 +45,7 @@ class JSONTools extends APIModule $output_txt = implode('', $output); $out = json_decode($output_txt, true); if (!is_array($out)) { - $this->getModule('logging')->log('Parse output', $out, Logging::CATEGORY_EXTERNAL, __FILE__, __LINE__); + $this->getModule('logging')->log('Parse output', $output_txt, Logging::CATEGORY_EXTERNAL, __FILE__, __LINE__); $out = null; } return $out; -- 2.47.3