From d47a34d530724e6c4309a499c070406445a39418 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 20 Apr 2022 09:02:19 +0000 Subject: [PATCH] Commit --- app/lib/App/Timetable/TimeMapper.php | 4 ++-- app/view/pages/race/live.php | 9 +++++++-- public/api/v1/race/sync.php | 11 ++--------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/app/lib/App/Timetable/TimeMapper.php b/app/lib/App/Timetable/TimeMapper.php index fe1923d..1c24525 100644 --- a/app/lib/App/Timetable/TimeMapper.php +++ b/app/lib/App/Timetable/TimeMapper.php @@ -76,8 +76,8 @@ class TimeMapper { $sth = $this->dbh->prepare('INSERT INTO tidtabell (LagID) VALUES (?)'); $sth->execute([$time->team_id]); - $lastId = $this->dbh->lastInsertId(); - return $this->get($lastId); + $last_id = $this->dbh->lastInsertId(); + return $this->get($last_id); } public function delete(int $id): void diff --git a/app/view/pages/race/live.php b/app/view/pages/race/live.php index 669db9a..456fd1c 100644 --- a/app/view/pages/race/live.php +++ b/app/view/pages/race/live.php @@ -1,3 +1,5 @@ + +

Live resultater


@@ -10,7 +12,8 @@ Laster inn...