diff options
Diffstat (limited to 'mod/uservalidationbyemail/lib/functions.php')
-rw-r--r-- | mod/uservalidationbyemail/lib/functions.php | 8 |
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; } /** |