dedi fix for validation replay ignore

This commit is contained in:
kremsy 2017-05-19 19:05:02 +02:00
parent e3a365f187
commit ff3c492bbf

View File

@ -746,6 +746,12 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
if (!$record->newRecord) { if (!$record->newRecord) {
continue; continue;
} }
if(!$record->vReplay){
Logger::log("Ignore time for " . $record->login . " no validation replay found");
continue;
}
array_push($times, array('Login' => $record->login, 'Best' => $record->best, 'Checks' => $record->checkpoints)); array_push($times, array('Login' => $record->login, 'Best' => $record->best, 'Checks' => $record->checkpoints));
if (!isset($replays['VReplay'])) { if (!isset($replays['VReplay'])) {
$replays['VReplay'] = $record->vReplay; $replays['VReplay'] = $record->vReplay;