valid_email() to always return boolean
diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php
index 628667d..2a63b36 100644
--- a/system/helpers/email_helper.php
+++ b/system/helpers/email_helper.php
@@ -47,7 +47,7 @@
 	 */
 	function valid_email($email)
 	{
-		return filter_var($email, FILTER_VALIDATE_EMAIL);
+		return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
 	}
 }
 
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 0fcdbd8..fdb9be4 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -708,7 +708,7 @@
 	 */
 	public function valid_email($email)
 	{
-		return filter_var($email, FILTER_VALIDATE_EMAIL);
+		return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
 	}
 
 	// --------------------------------------------------------------------
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);
 	}
 
 	// --------------------------------------------------------------------