diff options
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 0b50b9b55..1dd3017aa 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1312,6 +1312,7 @@ class Item extends Controller { } $post_id = $post['item_id']; + $approval_id = $post['approval_id'] ?? 0; $datarray = $post['item']; @@ -1408,8 +1409,8 @@ class Item extends Controller { if (!$nopush) { Master::Summon(['Notifier', $notify_type, $post_id]); - if (!empty($post['approval_id'])) { - Master::Summon(['Notifier', $notify_type, $post['approval_id']]); + if ($approval_id) { + Master::Summon(['Notifier', $notify_type, $approval_id]); } } |