From 2a3f891aa0629fa11806f585f42002145ca5a4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 27 Jun 2020 14:26:19 +0200 Subject: [PATCH] MAPG-180 don't echo void --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 0a7084d..509c7ba 100644 --- a/public/index.php +++ b/public/index.php @@ -36,7 +36,7 @@ if ($match !== null) { if ($response instanceof MapGuesser\Interfaces\Response\IContent) { header('Content-Type: ' . $response->getContentType() . '; charset=UTF-8'); - echo $response->render(); + $response->render(); return; } elseif ($response instanceof MapGuesser\Interfaces\Response\IRedirect) { @@ -49,4 +49,4 @@ if ($match !== null) { $content = new MapGuesser\Response\HtmlContent('error/404'); header('Content-Type: text/html; charset=UTF-8', true, 404); -echo $content->render(); +$content->render();