Skip to content

Commit 85d6752

Browse files
authored
Merge pull request #15 from georgringer/patch-1
Fix notice with PHP8
2 parents ed0110a + a273b2c commit 85d6752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Utility/FrontendUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static function getPropertyFromLoggedInFrontendUser(string $propertyName
188188
public static function getDomainFromUri(string $uri): string
189189
{
190190
$uriParts = parse_url($uri);
191-
return (string)$uriParts['host'];
191+
return (string)($uriParts['host'] ?? '');
192192
}
193193

194194
/**

0 commit comments

Comments
 (0)