From ff3928839cf9eb5fc0c1449dbfa8c4960966d267 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Sun, 27 Oct 2024 20:18:17 +0100 Subject: [PATCH] fix: domain create sites --- src/Appwrite/Platform/Modules/Sites/Http/Sites/CreateSite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/CreateSite.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/CreateSite.php index f6983e8f48..6b314a2037 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Sites/CreateSite.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/CreateSite.php @@ -104,7 +104,7 @@ class CreateSite extends Base if (!empty($sitesDomain)) { $ruleId = ID::unique(); - $routeSubdomain = $subdomain ?? ID::unique(); + $routeSubdomain = $subdomain || ID::unique(); $domain = "{$routeSubdomain}.{$sitesDomain}"; $subdomain = Authorization::skip(fn () => $dbForConsole->findOne('rules', [