aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/items.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index c832a3075..d88a676a1 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2451,13 +2451,17 @@ function send_status_notifications($post_id,$item) {
intval($item['uid'])
);
- $thr_parent_id = $r[0]['id'];
+ if ($r) {
+ $thr_parent_id = $r[0]['id'];
+ }
+
}
$r = q("select channel_hash from channel where channel_id = %d limit 1",
intval($item['uid'])
);
- if(! $r)
+
+ if(!$r)
return;
// my own post - no notification needed