diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 33fd85e9..648d3ef2 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -902,7 +902,7 @@ JS; $id = $this->currentPageID(); if($id && is_numeric($id)) { $page = DataObject::get_by_id($this->stat('tree_class'), $id); - if(Translatable::is_enabled() && $page->Lang && $page->Lang != Translatable::current_lang()) { + if($page && Translatable::is_enabled() && $page->Lang && $page->Lang != Translatable::current_lang()) { return false; } else { return $page;