Commit 95a338d5 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1713598: set a potential array up as empty array and not string"

parents aa12e3be bed303c9
......@@ -1716,7 +1716,7 @@ class View {
unset($categories[$i]);
continue;
}
$classes = '';
$classes = array();
if (!$flag) {
$flag = true;
$classes[] = 'first';
......@@ -1724,7 +1724,7 @@ class View {
if ($category == $cat['name']) {
$classes[] = 'current';
}
if ($classes) {
if (!empty($classes)) {
$cat['class'] = hsc(implode(' ', $classes));
}
}
......
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