diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-27 14:43:46 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-27 14:43:46 +0200 |
commit | 580388bc79e340ddf44f52853524ecc03b9d339c (patch) | |
tree | 7fb3cc334826fececd1026951d2a31f9d0bb49c0 /system/helpers | |
parent | 6edf929449f50339c4cb52891426fa9d45e33e00 (diff) |
valid_email() to always return boolean
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/email_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php index 628667d4d..2a63b36c9 100644 --- a/system/helpers/email_helper.php +++ b/system/helpers/email_helper.php @@ -47,7 +47,7 @@ if ( ! function_exists('valid_email')) */ function valid_email($email) { - return filter_var($email, FILTER_VALIDATE_EMAIL); + return (bool) filter_var($email, FILTER_VALIDATE_EMAIL); } } |