summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-02-05 20:02:47 +0000
committerZach Copley <zach@controlyourself.ca>2009-02-05 20:02:47 +0000
commit986abdd968ea6a72df0329038288e31c76403b0b (patch)
tree68e7008334be6b85ad9813c26838994ccb2296ea /classes/User.php
parent96ca4ef75ae47228031ab4ba17b3340735342363 (diff)
parent9febe8ce394d8428355ac73f1c0f6a9555252bd2 (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index b1c061c18..a6a1b11b9 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -630,4 +630,15 @@ class User extends Memcached_DataObject
return $profile;
}
+
+ function hasOpenID()
+ {
+ $oid = new User_openid();
+
+ $oid->user_id = $this->id;
+
+ $cnt = $oid->find();
+
+ return ($cnt > 0);
+ }
}