diff options
author | friendica <info@friendica.com> | 2014-02-18 16:59:31 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-18 16:59:31 -0800 |
commit | 5747e20e502cd4504aef4371b30631265579e81c (patch) | |
tree | ced1931f1dd3b4f9801e32b1900bb804b7a5a5fa /include/auth.php | |
parent | 7d4916ec714d834db3493c2fc12e76b0ffdb26b2 (diff) | |
download | volse-hubzilla-5747e20e502cd4504aef4371b30631265579e81c.tar.gz volse-hubzilla-5747e20e502cd4504aef4371b30631265579e81c.tar.bz2 volse-hubzilla-5747e20e502cd4504aef4371b30631265579e81c.zip |
some more snakebite and fix up include/account - forgot about that inline array stuff
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |