aboutsummaryrefslogtreecommitdiff
path: root/mod/uservalidationbyemail/lib/functions.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-06 14:35:29 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-06 14:35:29 +0000
commit91b1bc93352e5cfedbf9e1866d140f0ef2b29e4c (patch)
treea5301989dbec32c9b24e05bccc9a15cf23d1d75a /mod/uservalidationbyemail/lib/functions.php
parent6606581f431f52330b8bcc28e1aa1b55a4b5b408 (diff)
downloadelgg-91b1bc93352e5cfedbf9e1866d140f0ef2b29e4c.tar.gz
elgg-91b1bc93352e5cfedbf9e1866d140f0ef2b29e4c.tar.bz2
Merged some fixes from the 1.7.4 backport of uservalidationbyemail.
git-svn-id: http://code.elgg.org/elgg/trunk@7023 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/uservalidationbyemail/lib/functions.php')
-rw-r--r--mod/uservalidationbyemail/lib/functions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/uservalidationbyemail/lib/functions.php b/mod/uservalidationbyemail/lib/functions.php
index 4ba5d13b7..92b37c843 100644
--- a/mod/uservalidationbyemail/lib/functions.php
+++ b/mod/uservalidationbyemail/lib/functions.php
@@ -113,7 +113,13 @@ function uservalidationbyemail_set_user_validation_status($user_guid, $status, $
* @return int|null
*/
function uservalidationbyemail_get_user_validation_status($user_guid) {
- return get_metadata_byname($user_guid, 'validated');
+ $md = get_metadata_byname($user_guid, 'validated');
+
+ if ($md && $md->value) {
+ return TRUE;
+ }
+
+ return FALSE;
}
/**