From 5747e20e502cd4504aef4371b30631265579e81c Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 18 Feb 2014 16:59:31 -0800 Subject: some more snakebite and fix up include/account - forgot about that inline array stuff --- include/auth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/auth.php') diff --git a/include/auth.php b/include/auth.php index a4e859e0c..425715014 100644 --- a/include/auth.php +++ b/include/auth.php @@ -233,10 +233,10 @@ else { function match_openid($authid) { - $r = q("select * from pconfig where cat = 'system' and k = 'openid' "); + $r = q("select * from pconfig where cat = 'system' and k = 'openid' and v = '%s' limit 1", + dbesc($authid) + ); if($r) - foreach($r as $rr) - if($rr['v'] === $authid) - return $rr['uid']; + return $r[0]['uid']; return false; } -- cgit v1.2.3