some more snakebite and fix up include/account - forgot about that inline array stuff

This commit is contained in:
friendica
2014-02-18 16:59:31 -08:00
parent 7d4916ec71
commit 5747e20e50
4 changed files with 57 additions and 21 deletions

View File

@@ -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;
}