Fix TreeMapper#getChildren

see https://github.com/floccusaddon/floccus/issues/1408

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-08-20 14:14:34 +02:00
parent f1a4dfe061
commit 20f7df2b48
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ class TreeMapper extends QBMapper {
}
if ($item['type'] === self::TYPE_BOOKMARK) {
$item = array_merge(Bookmark::fromRow(array_intersect_key(array_flip(Bookmark::$columns), $child))->toArray(), $item);
$item = array_merge(Bookmark::fromRow(array_intersect_key($child, array_flip(Bookmark::$columns)))->toArray(), $item);
}
if ($item['type'] === self::TYPE_FOLDER && $layers !== 0) {