fix for empty recip array resulting from a mangled xchan
This commit is contained in:
parent
59b67d52e6
commit
7db515b77c
@ -1114,11 +1114,14 @@ function zot_import($arr, $sender_url) {
|
|||||||
$recip_arr[] = make_xchan_hash($recip['guid'],$recip['guid_sig']);
|
$recip_arr[] = make_xchan_hash($recip['guid'],$recip['guid_sig']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stringify_array_elms($recip_arr);
|
$r = false;
|
||||||
$recips = implode(',',$recip_arr);
|
if($recip_arr) {
|
||||||
$r = q("select channel_hash as hash from channel where channel_hash in ( " . $recips . " ) and not ( channel_pageflags & %d ) > 0 ",
|
stringify_array_elms($recip_arr);
|
||||||
intval(PAGE_REMOVED)
|
$recips = implode(',',$recip_arr);
|
||||||
);
|
$r = q("select channel_hash as hash from channel where channel_hash in ( " . $recips . " ) and not ( channel_pageflags & %d ) > 0 ",
|
||||||
|
intval(PAGE_REMOVED)
|
||||||
|
);
|
||||||
|
}
|
||||||
if(! $r) {
|
if(! $r) {
|
||||||
logger('recips: no recipients on this site');
|
logger('recips: no recipients on this site');
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user