mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
missing field in query
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user