From 03e18bcdbca85c9396dec9cc6d5b4b93836ff37a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 11 Oct 2024 00:02:18 +0200 Subject: [PATCH 1/1] Fix undefined key error --- Util/SluggerUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/SluggerUtil.php b/Util/SluggerUtil.php index c4d00b7..7abf5d3 100644 --- a/Util/SluggerUtil.php +++ b/Util/SluggerUtil.php @@ -46,7 +46,7 @@ class SluggerUtil { */ public function __construct(protected string $secret) { //Without range - if (empty($range = $_ENV['RAPSYSPACK_RANGE']) || $range === 'Ch4ng3m3!') { + if (!isset($_ENV['RAPSYSPACK_RANGE']) || empty($range = $_ENV['RAPSYSPACK_RANGE']) || $range === 'Ch4ng3m3!') { //Protect member variable setup return; } -- 2.41.1