From 765b20d39cd59b66a149d2980f90bcb86bddc1df Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 13 Feb 2014 20:45:38 +0100 Subject: [PATCH] small fix --- application/core/Statistics/StatisticCollector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/Statistics/StatisticCollector.php b/application/core/Statistics/StatisticCollector.php index eb00b745..131a3c7e 100644 --- a/application/core/Statistics/StatisticCollector.php +++ b/application/core/Statistics/StatisticCollector.php @@ -306,8 +306,8 @@ class StatisticCollector implements CallbackListener { $paramsObject = json_decode($callback[1][1]); $victim = $this->maniaControl->playerManager->getPlayer($paramsObject->Event->Victim->Login); $this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim); - $shooter = $this->maniaControl->playerManager->getPlayer($paramsObject->Event->Shooter->Login); - if ($shooter != null) { + if (isset($paramsObject->Event->Shooter->Login)) { + $shooter = $this->maniaControl->playerManager->getPlayer($paramsObject->Event->Shooter->Login); $this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter); } break;