mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Checking for existence of original before trying to get translation in LeftAndMain->currentPage()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73344 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a2541c2949
commit
a9053b4b67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user