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

pull/4649/head
Michael 2018-03-22 16:18:49 +00:00
rodzic 0d60f1a7d3
commit b171fb1f24
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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