diff options
-rw-r--r-- | Zotlabs/Module/Notify.php | 2 | ||||
-rw-r--r-- | include/connections.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Notify.php b/Zotlabs/Module/Notify.php index 4cbcfee05..0af2ec93a 100644 --- a/Zotlabs/Module/Notify.php +++ b/Zotlabs/Module/Notify.php @@ -10,7 +10,7 @@ class Notify extends Controller { if(! local_channel()) return; - if($_REQUEST['notify_id']) { + if(isset($_REQUEST['notify_id']) && $_REQUEST['notify_id']) { $update_notices_per_parent = PConfig::Get(local_channel(), 'system', 'update_notices_per_parent', 1); if($update_notices_per_parent) { diff --git a/include/connections.php b/include/connections.php index d861bc1b3..936fc1edd 100644 --- a/include/connections.php +++ b/include/connections.php @@ -424,7 +424,7 @@ function contact_remove($channel_id, $abook_id) { function remove_abook_items($channel_id, $xchan_hash) { - $r = q("select id from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d and item_retained = 0 and item_starred = 0", + $r = q("select id, parent from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d and item_retained = 0 and item_starred = 0", dbesc($xchan_hash), dbesc($xchan_hash), intval($channel_id) |