Merge pull request #4649 from annando/fix-thr-parent

Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent"
This commit is contained in:
Hypolite Petovan
2018-03-22 12:24:37 -04:00
committed by GitHub

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')) {
$item['gravity'] = intval($item['gravity']);
} elseif ($item['parent-uri'] === $item['uri']) {