From 9fc58feb03c0b678a72a339c433908adb82257ab Mon Sep 17 00:00:00 2001 From: g4b0 Date: Tue, 28 May 2013 16:25:25 +0200 Subject: [PATCH] BUG: correct handling of multiple classes --- admin/code/LeftAndMain.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index 629356787..dad8d1a52 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -1840,7 +1840,12 @@ class LeftAndMain_TreeNode extends ViewableData { $classes = $this->obj->CMSTreeClasses(); if($this->isCurrent) $classes .= " current"; $flags = $this->obj->hasMethod('getStatusFlags') ? $this->obj->getStatusFlags() : false; - if($flags) $classes .= ' status-' . implode('status-', array_keys($flags)); + if ($flags) { + $statuses = array_keys($flags); + foreach ($statuses as $s) { + $classes .= ' status-' . $s; + } + } return $classes; }