From cf83a4553adef1f634219bd5fb3ad461950ef774 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Thu, 5 Jul 2012 12:07:01 -0600 Subject: [PATCH] properly order database search logic --- jappixmini/jappixmini.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index d5330633..5d6f8446 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -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) ); -- 2.39.5