From e28dd260c3158bc050ce6572ee9e6f105bd3c3fd Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 7 Aug 2023 16:17:34 +0100 Subject: [PATCH] Update init.php --- app/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init.php b/app/init.php index d391196f32..1764fc927a 100644 --- a/app/init.php +++ b/app/init.php @@ -1005,7 +1005,7 @@ App::setResource('project', function ($dbForConsole, $request, $console) { $projectId = $request->getParam('project', $request->getHeader('x-appwrite-project', '')); - if ($projectId === 'console') { + if (empty($projectId) || $projectId === 'console') { return $console; }