From a48a119bcc59b3a47b96b484e313e568f8209de2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 23 Jan 2009 01:52:11 +0000 Subject: [PATCH] MINOR merged r70323 from trunk git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70663 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index b5fadc99..fa9d8cbd 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -498,7 +498,7 @@ class LeftAndMain extends Controller { $parentID = (int)$p->ParentID; $id = $p->ID ? $p->ID : "new-$p->class-$p->ParentID"; $treeTitle = Convert::raw2js($p->TreeTitle()); - $hasChildren = is_numeric( $id ) && $p->AllChildren() ? ' unexpanded' : ''; + $hasChildren = (is_numeric($id) && $p->AllChildren() && $p->AllChildren()->Count()) ? ' unexpanded' : ''; // Ensure there is definitly a node avaliable. if not, append to the home tree. $response = <<