Are the tests happy?
This commit is contained in:
parent
e6ab4d9be9
commit
f7f79a240a
|
@ -193,7 +193,7 @@ class JsonLD
|
|||
}
|
||||
|
||||
// If it isn't an array yet, make it to one
|
||||
if (!is_array($array[$element])) {
|
||||
if (!is_array($array[$element]) || !is_int(key($array[$element]))) {
|
||||
$array[$element] = [$array[$element]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user