aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-26 19:11:13 +0000
committerMario <mario@mariovavti.com>2022-10-26 19:11:13 +0000
commitc8bc1b560bceb391e0af0c11f743fe5015443cff (patch)
tree3691a150d79aceb9818ba34affa7981e93b75c93
parent40ae6b396f3760c4c4b6e4de776869a88ce07fce (diff)
downloadvolse-hubzilla-c8bc1b560bceb391e0af0c11f743fe5015443cff.tar.gz
volse-hubzilla-c8bc1b560bceb391e0af0c11f743fe5015443cff.tar.bz2
volse-hubzilla-c8bc1b560bceb391e0af0c11f743fe5015443cff.zip
missing field in query
-rw-r--r--Zotlabs/Module/Notify.php2
-rw-r--r--include/connections.php2
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)