aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-02 05:32:05 -0700
committerFriendika <info@friendika.com>2011-10-02 05:32:05 -0700
commit7c1968907d26a66581d362475a6b557e53e159cb (patch)
tree99186c300166ac1622ba5a951f35f05ff93b25c3 /include/notifier.php
parent8c9a6b0512da3bd73f28989bc179c4e417b267d8 (diff)
downloadvolse-hubzilla-7c1968907d26a66581d362475a6b557e53e159cb.tar.gz
volse-hubzilla-7c1968907d26a66581d362475a6b557e53e159cb.tar.bz2
volse-hubzilla-7c1968907d26a66581d362475a6b557e53e159cb.zip
attack of the zombie orphans
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 864fa517b..d1cd1cc73 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -123,6 +123,9 @@ function notifier_run($argv, $argc){
$uid = $r[0]['uid'];
$updated = $r[0]['edited'];
+ if(! $parent_id)
+ return;
+
$items = q("SELECT `item`.*, `sign`.`signed_text`,`sign`.`signature`,`sign`.`signer`
FROM `item` LEFT JOIN `sign` ON `sign`.`iid` = `item`.`id` WHERE `parent` = %d ORDER BY `id` ASC",
intval($parent_id)