1
1
Fork 0

Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent"

This commit is contained in:
Michael 2018-03-22 16:18:49 +00:00
parent 0d60f1a7d3
commit b171fb1f24

View file

@ -356,6 +356,10 @@ class Item extends BaseObject
} }
} }
if (!empty($item['thr-parent'])) {
$item['parent-uri'] = $item['thr-parent'];
}
if (x($item, 'gravity')) { if (x($item, 'gravity')) {
$item['gravity'] = intval($item['gravity']); $item['gravity'] = intval($item['gravity']);
} elseif ($item['parent-uri'] === $item['uri']) { } elseif ($item['parent-uri'] === $item['uri']) {