Item delivery data must only be stored when there is data

This commit is contained in:
Michael 2019-06-29 08:30:48 +00:00
parent c5d8d82bd2
commit 3121d967c5
3 changed files with 9 additions and 2 deletions

View file

@ -1883,7 +1883,9 @@ class Item extends BaseObject
self::updateThread($parent_id);
}
ItemDeliveryData::insert($current_post, $delivery_data);
if (!empty($item['origin']) || !empty($item['wall']) || !empty($delivery_data['postopts']) || !empty($delivery_data['inform'])) {
ItemDeliveryData::insert($current_post, $delivery_data);
}
DBA::commit();