missing field in query

This commit is contained in:
Mario
2022-10-26 19:11:13 +00:00
parent 40ae6b396f
commit c8bc1b560b
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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)