summaryrefslogtreecommitdiffstats
path: root/application/models/Muser.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-21 17:53:06 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-21 18:11:50 +0200
commit92409440c400f7364c77d8bddc2c4f7ffcf3334e (patch)
tree18e7b75713be20bbec018b9584d8fe5389e7b4a0 /application/models/Muser.php
parent3d38163a81ce1e5921be690348b30a2f6db62837 (diff)
Remove usage of deprecated valid_email function
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/Muser.php')
-rw-r--r--application/models/Muser.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/application/models/Muser.php b/application/models/Muser.php
index 72bcffde0..e59572f82 100644
--- a/application/models/Muser.php
+++ b/application/models/Muser.php
@@ -156,8 +156,7 @@ class Muser extends CI_Model {
*/
public function valid_email($email)
{
- $this->load->helper("email");
- return valid_email($email);
+ return $email === filter_var($email, FILTER_VALIDATE_EMAIL);
}
public function add_user($username, $password, $email, $referrer)