mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
Potential Null pointer exception in Space URL
This commit is contained in:
parent
8f8a1b4cfe
commit
65c1eca808
@ -95,7 +95,7 @@ class UrlRule extends BaseObject implements UrlRuleInterface
|
||||
if ($space !== null) {
|
||||
static::$spaceUrlMap[$space->guid] = ($space->url != '') ? $space->url : $space->guid;
|
||||
} else {
|
||||
static::$spaceUrlMap[$space->guid] = null;
|
||||
static::$spaceUrlMap[$guid] = null;
|
||||
}
|
||||
|
||||
return static::$spaceUrlMap[$guid];
|
||||
|
Loading…
x
Reference in New Issue
Block a user