Commit c845fac5 authored by Stefan Galinski's avatar Stefan Galinski 🎮

[BUGFIX] Catch an exception if a language is disbaled for a specific site

parent 318da6e1
......@@ -98,12 +98,12 @@ class FrontendServices extends AbstractServices implements SingletonInterface {
try {
$rootLine = BackendUtility::BEgetRootLine($pid);
$site = $siteFinder->getSiteByPageId($pid, $rootLine);
} catch (Exception $e) {
return FALSE;
}
$language = $site->getLanguageById($lUid);
if (!$language instanceof SiteLanguage) {
$language = $site->getLanguageById($lUid);
if (!$language instanceof SiteLanguage) {
return FALSE;
}
} catch (Exception $e) {
return FALSE;
}
......
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