From 25654e720c937a3b2f4dc15509f75baa43871956 Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 17 Sep 2022 15:49:24 +0200 Subject: [PATCH] added $error in case if missing API key --- src/Controller/ApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/ApiController.php b/src/Controller/ApiController.php index 95acb1d..acf7dde 100644 --- a/src/Controller/ApiController.php +++ b/src/Controller/ApiController.php @@ -82,6 +82,7 @@ class ApiController break; case 401: $result = 'Missing or wrong API Key'; + $error = true; break; case 404: $result = '404 Not Found';