Merge pull request #64 from fermionic/jappixmini-contact-name-bug
properly order database search logicpull/65/head
commit
0fe7075293
|
@ -435,7 +435,7 @@ function jappixmini_script(&$a,&$s) {
|
|||
$key = $row['k'];
|
||||
$pos = strpos($key, ":");
|
||||
$dfrn_id = substr($key, $pos+1);
|
||||
$r = q("SELECT `name` FROM `contact` WHERE `uid`=$uid AND `dfrn-id`='%s' OR `issued-id`='%s'",
|
||||
$r = q("SELECT `name` FROM `contact` WHERE `uid`=$uid AND (`dfrn-id`='%s' OR `issued-id`='%s')",
|
||||
dbesc($dfrn_id),
|
||||
dbesc($dfrn_id)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue