properly order database search logic

pull/64/head
Zach Prezkuta 2012-07-05 12:07:01 -06:00
parent cdc0a31f33
commit cf83a4553a
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ function jappixmini_script(&$a,&$s) {
$key = $row['k']; $key = $row['k'];
$pos = strpos($key, ":"); $pos = strpos($key, ":");
$dfrn_id = substr($key, $pos+1); $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),
dbesc($dfrn_id) dbesc($dfrn_id)
); );