Commit 6c95b9a0 authored by Fabian Galinski's avatar Fabian Galinski

[BUGFIX] VisibilityService::getDefaultVisibilityForPagesByLanguage() must be...

[BUGFIX] VisibilityService::getDefaultVisibilityForPagesByLanguage() must be of the type string, null returned
parent bc0a40ac
......@@ -382,8 +382,8 @@ class VisibilityService implements SingletonInterface {
}
// this can happen, when a language doesn't have a record
if ($this->cachedDefaultVisibilityForElements[$languageUid] === NULL) {
$this->cachedDefaultVisibilityForElements[$languageUid] = 'fallback';
if ($this->cachedDefaultVisibilityForPages[$languageUid] === NULL) {
$this->cachedDefaultVisibilityForPages[$languageUid] = 'fallback';
}
return $this->cachedDefaultVisibilityForPages[$languageUid];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment