From 49435fbec096a2d27919ba39dd6f198bcda3bfd5 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 23 Feb 2014 15:37:04 +0100 Subject: [PATCH] dedifix --- application/plugins/Dedimania/Dedimania.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/application/plugins/Dedimania/Dedimania.php b/application/plugins/Dedimania/Dedimania.php index c08d0776..70bb0afb 100644 --- a/application/plugins/Dedimania/Dedimania.php +++ b/application/plugins/Dedimania/Dedimania.php @@ -277,10 +277,16 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { continue; } array_push($times, array('Login' => $record->login, 'Best' => $record->best, 'Checks' => $record->checkpoints)); - $replays['VReplay'] = $record->vReplay; - $replays['Top1GReplay'] = $record->top1GReplay; - $replays['VReplayChecks'] = ''; - // TODO: VReplayChecks + if(!isset($replays['VReplay'])){ + $replays['VReplay'] = $record->vReplay; + } + if (!isset($replays['Top1GReplay'])) { + $replays['Top1GReplay'] = $record->top1GReplay; + } + if (!isset($replays['VReplayChecks'])) { + $replays['VReplayChecks'] = ''; + // TODO: VReplayChecks + } } xmlrpc_set_type($replays['VReplay'], 'base64');