Tabbed out if

This commit is contained in:
Wolf Vollprecht 2011-12-22 15:30:46 +01:00
parent afecc6b20b
commit 5d5b5ed07c

View File

@ -252,8 +252,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
$defaultParent = $obj->defaultParent();
if(SiteTree::get_by_link($defaultParent)) {
$id = $defaultParent ? SiteTree::get_by_link($defaultParent)->ID : null;
$defaultParent = $id ? SiteTree::get_by_link($obj->defaultParent())->ID : null;
$id = $defaultParent ? SiteTree::get_by_link($defaultParent)->ID : null;
$defaultParent = $id ? SiteTree::get_by_link($obj->defaultParent())->ID : null;
}
if ($defaultParent != 1 && $defaultParent != null) $def[$class]['defaultParent'] = $defaultParent;