mirror of
https://github.com/friendica/friendica
synced 2025-04-22 06:30:11 +00:00
Fixes "PHP Warning: key() expects parameter 1 to be array, string given"
This commit is contained in:
parent
e146a5983c
commit
e6ab4d9be9
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class JsonLD
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it isn't an array yet, make it to one
|
// If it isn't an array yet, make it to one
|
||||||
if (!is_int(key($array[$element]))) {
|
if (!is_array($array[$element])) {
|
||||||
$array[$element] = [$array[$element]];
|
$array[$element] = [$array[$element]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue