commit | 580388bc79e340ddf44f52853524ecc03b9d339c | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Wed Jun 27 15:43:46 2012 +0300 |
committer | Andrey Andreev <narf@bofh.bg> | Wed Jun 27 15:43:46 2012 +0300 |
tree | 7fb3cc334826fececd1026951d2a31f9d0bb49c0 | |
parent | 6edf929449f50339c4cb52891426fa9d45e33e00 [diff] [blame] |
valid_email() to always return boolean
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index f3087f8..3536241 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -1076,7 +1076,7 @@ */ public function valid_email($str) { - return filter_var($str, FILTER_VALIDATE_EMAIL); + return (bool) filter_var($str, FILTER_VALIDATE_EMAIL); } // --------------------------------------------------------------------