From 6ee01ee5681034db207035058f54ee7bb8f0e1c0 Mon Sep 17 00:00:00 2001 From: Matt Grubb Date: Wed, 4 Nov 2020 00:55:49 -0500 Subject: [PATCH] Update Authorization.php --- src/CoolApi/Core/Authorization.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CoolApi/Core/Authorization.php b/src/CoolApi/Core/Authorization.php index c6b7559..6f7b6fe 100644 --- a/src/CoolApi/Core/Authorization.php +++ b/src/CoolApi/Core/Authorization.php @@ -48,6 +48,8 @@ private function validateKey () { // Make sure keys are provided in array format. if (!is_array($this->instance->config->apiKeys['keys'])) return $this->unauthorized(); + $passes = false; + /** * Iterate through the keys, and validate it as a valid key. */