From: Zach Prezkuta Date: Thu, 5 Jul 2012 18:07:01 +0000 (-0600) Subject: properly order database search logic X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf83a4553adef1f634219bd5fb3ad461950ef774;p=friendica-addons.git properly order database search logic --- 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) );