Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
eb81c52b
Commit
eb81c52b
authored
Dec 02, 2014
by
Thomas Müller
Browse files
fix an issue where the types tag holds an empty string
parent
086ec3de
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/private/app/infoparser.php
View file @
eb81c52b
...
...
@@ -76,12 +76,16 @@ class InfoParser {
}
}
if
(
array_key_exists
(
'types'
,
$array
))
{
if
(
is_array
(
$array
[
'types'
]))
{
foreach
(
$array
[
'types'
]
as
$type
=>
$v
)
{
unset
(
$array
[
'types'
][
$type
]);
if
(
is_string
(
$type
))
{
$array
[
'types'
][]
=
$type
;
}
}
}
else
{
$array
[
'types'
]
=
array
();
}
}
return
$array
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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