From 88a5d472fa1d37aaaa4f444bf07dc2074a9c1605 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 22 Jun 2017 17:04:58 +0200 Subject: [PATCH] small notice fix --- plugins/MCTeam/KarmaPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/MCTeam/KarmaPlugin.php b/plugins/MCTeam/KarmaPlugin.php index cddbc2be..467a7896 100644 --- a/plugins/MCTeam/KarmaPlugin.php +++ b/plugins/MCTeam/KarmaPlugin.php @@ -270,7 +270,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { } else { Logger::logError("Error while authenticating on Mania-Exchange Karma"); // TODO remove temp trigger - $this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . $data->data->message); + $this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . json_encode($data->data->message)); $this->mxKarma['connectionInProgress'] = false; } }); @@ -418,7 +418,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { if ($data->data->message === 'invalid session') { unset($this->mxKarma['session']); } else { - $this->maniaControl->getErrorHandler()->triggerDebugNotice('fetch error ' . $data->data->message . self::MX_KARMA_GET_MAP_RATING); + $this->maniaControl->getErrorHandler()->triggerDebugNotice('fetch error ' . json_encode($data->data->message . self::MX_KARMA_GET_MAP_RATING)); } } }); @@ -523,7 +523,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { if ($data->data->message === "invalid session") { unset($this->mxKarma['session']); } else { - $this->maniaControl->getErrorHandler()->triggerDebugNotice('saving error ' . $data->data->message . self::MX_KARMA_SAVE_VOTES); + $this->maniaControl->getErrorHandler()->triggerDebugNotice('saving error ' . json_encode($data->data->message . self::MX_KARMA_SAVE_VOTES)); } } });