Permalink
Browse files

Tabbed out if

  • Loading branch information...
1 parent afecc6b commit 5d5b5ed07cc91a7a7cde62ac013befdef52b4404 @wolfv wolfv committed Dec 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/controllers/CMSMain.php
@@ -252,8 +252,8 @@ public function SiteTreeHints() {
$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;

0 comments on commit 5d5b5ed

Please sign in to comment.