Fix use of result instead of NearEvents

pull/3072/head
Isaac Connor 2020-10-21 10:40:26 -04:00
parent 8f8526c2f1
commit e6f08959fa
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ function getNearEvents() {
$NearEvents['PrevEventStartTime'] = $prevEvent['StartTime'];
$NearEvents['PrevEventDefVideoPath'] = getEventDefaultVideoPath($prevEvent['Id']);
} else {
$NearEvents['PrevEventId'] = $result['PrevEventStartTime'] = $result['PrevEventDefVideoPath'] = 0;
$NearEvents['PrevEventId'] = $NearEvents['PrevEventStartTime'] = $NearEvents['PrevEventDefVideoPath'] = 0;
}
if ( $nextEvent ) {
$NearEvents['NextEventId'] = $nextEvent['Id'];