Commit eb430f9c authored by Evan Prodromou's avatar Evan Prodromou

don't add empty classes to menu items

parent 663bc353
......@@ -1360,9 +1360,13 @@ class Action extends HTMLOutputter // lawsuit
$classes[] = 'current';
}
$lattrs['class'] = implode(' ', $classes);
if (!empty($classes)) {
$lattrs['class'] = implode(' ', $classes);
}
(is_null($id)) ? $lattrs : $lattrs['id'] = $id;
if (!is_null($id)) {
$lattrs['id'] = $id;
}
$this->elementStart('li', $lattrs);
$attrs['href'] = $url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment