aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-10-12 17:05:35 +0200
committerMario Vavti <mario@mariovavti.com>2024-10-12 17:05:35 +0200
commitc23a71c936e5ad73830c7a1ca7533e797f3c382f (patch)
tree8d2dd2eb48efd29de63b136bcb7a6955eb1ae3a7
parent12b33a23dec6d65b9c73c002ba7221f3306ef598 (diff)
downloadvolse-hubzilla-c23a71c936e5ad73830c7a1ca7533e797f3c382f.tar.gz
volse-hubzilla-c23a71c936e5ad73830c7a1ca7533e797f3c382f.tar.bz2
volse-hubzilla-c23a71c936e5ad73830c7a1ca7533e797f3c382f.zip
code consistency
-rw-r--r--include/items.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index bb14cfb73..16522b0a6 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3397,12 +3397,13 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
$arr['comment_policy'] = map_scope(PermissionLimits::Get($channel['channel_id'],'post_comments'));
$post = item_store($arr, deliver: false, addAndSync: false);
- $post_id = $post['item_id'];
+ $post_id = $post['item_id'] ?? 0;
+ $approval_id = $post['approval_id'] ?? 0;
if ($post_id) {
Master::Summon([ 'Notifier','tgroup',$post_id ]);
- if (!empty($post['approval_id'])) {
- Master::Summon(['Notifier', 'tgroup', $post['approval_id']]);
+ if ($approval_id) {
+ Master::Summon(['Notifier', 'tgroup', $approval_id]);
}
}