Merge pull request #479 from MrPetovan/bug/4046-remove-group_member-uid

Remove group_member.uid in pumpio
This commit is contained in:
Michael Vogel 2017-12-16 04:06:47 +01:00 committed by GitHub
commit 4ceec855d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1544,10 +1544,9 @@ function pumpio_getreceiver(&$a, $b) {
$gid = trim($gid, " <>"); $gid = trim($gid, " <>");
$r = q("SELECT `contact`.`name`, `contact`.`nick`, `contact`.`url`, `contact`.`network` ". $r = q("SELECT `contact`.`name`, `contact`.`nick`, `contact`.`url`, `contact`.`network` ".
"FROM `group_member`, `contact` WHERE `group_member`.`gid` = %d AND `group_member`.`uid` = %d ". "FROM `group_member`, `contact` WHERE `group_member`.`gid` = %d ".
"AND `contact`.`id` = `group_member`.`contact-id` AND `contact`.`network` = '%s'", "AND `contact`.`id` = `group_member`.`contact-id` AND `contact`.`network` = '%s'",
intval($gid), intval($gid),
intval($b["uid"]),
dbesc(NETWORK_PUMPIO) dbesc(NETWORK_PUMPIO)
); );