move iconfig functions to include/config.php with all the rest of the configs, fix an issue with singleton discovery and start work on singleton delivery

This commit is contained in:
redmatrix
2016-04-26 16:12:31 -07:00
parent e508ad37c1
commit f99daf8ff9
5 changed files with 179 additions and 160 deletions

View File

@@ -2114,8 +2114,9 @@ function check_channelallowed($hash) {
return $retvalue;
}
function deliverable_singleton($xchan) {
$r = q("select abook_instance from abook where abook_xchan = '%s' limit 1",
function deliverable_singleton($channel_id,$xchan) {
$r = q("select abook_instance from abook where abook_channel = %d and abook_xchan = '%s' limit 1",
intval($channel_id),
dbesc($xchan['xchan_hash'])
);
if($r) {