From d67f2c0527acf0046588397576b8dd00286dfaf4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 29 Oct 2021 14:49:55 +0200 Subject: [PATCH] bug and media fixes --- Controller/ApiController.php | 2 +- tests/Bootstrap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 42cc7f2..3ed4a08 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -69,7 +69,7 @@ final class ApiController extends Controller } $employee = EmployeeMapper::getFromAccount($account); - $sessions = SessionMapper::getSessionListForEmployee($employee->getId(), new DateTime($request->getData('start') ?? 'now'), (int) ($request->getData('session') ?? 0), 50); + $sessions = SessionMapper::getSessionListForEmployee($employee->getId(), new \DateTime($request->getData('start') ?? 'now'), (int) ($request->getData('session') ?? 0), 50); $this->fillJsonResponse($request, $response, NotificationLevel::HIDDEN, '', '', $sessions); } diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index 051ac7e..f5fc99c 100755 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -392,4 +392,4 @@ function phpServe() : void }); } -phpServe(); +\phpServe();