Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
95a338d5
Commit
95a338d5
authored
Sep 27, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Sep 27, 2017
Browse files
Merge "Bug 1713598: set a potential array up as empty array and not string"
parents
aa12e3be
bed303c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
95a338d5
...
...
@@ -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
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment