From da36535250fbd0df57a1ecc179bf851bc3bbdeb4 Mon Sep 17 00:00:00 2001 From: lostlian Date: Sat, 10 Oct 2015 10:10:52 -0500 Subject: [PATCH] Fix depreciated valid email Fix depreciated valid email --- application/libraries/Aauth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index f36f6a33..0aed7b70 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -713,7 +713,8 @@ public function create_user($email, $pass, $name='') { $this->error($this->CI->lang->line('aauth_error_email_exists')); $valid = FALSE; } - if (!valid_email($email)){ + $valid_email = (bool) filter_var($email, FILTER_VALIDATE_EMAIL); + if (!$valid_email){ $this->error($this->CI->lang->line('aauth_error_email_invalid')); $valid = FALSE; }