diff options
author | Friendika <info@friendika.com> | 2011-10-02 05:32:05 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-10-02 05:32:05 -0700 |
commit | 7c1968907d26a66581d362475a6b557e53e159cb (patch) | |
tree | 99186c300166ac1622ba5a951f35f05ff93b25c3 /include | |
parent | 8c9a6b0512da3bd73f28989bc179c4e417b267d8 (diff) | |
download | volse-hubzilla-7c1968907d26a66581d362475a6b557e53e159cb.tar.gz volse-hubzilla-7c1968907d26a66581d362475a6b557e53e159cb.tar.bz2 volse-hubzilla-7c1968907d26a66581d362475a6b557e53e159cb.zip |
attack of the zombie orphans
Diffstat (limited to 'include')
-rw-r--r-- | include/delivery.php | 2 | ||||
-rw-r--r-- | include/notifier.php | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/delivery.php b/include/delivery.php index 3ab820b62..46112d78e 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -96,6 +96,8 @@ function delivery_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` 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) |