validemail() to model/user/user.php

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-09-17 22:45:47 +02:00
parent 6ce7efd1ed
commit 2a51a44034

View File

@ -84,7 +84,7 @@ class ModelUserUser extends Model {
if(isset($query->rows)) { if(isset($query->rows)) {
foreach ($query->rows as $q) { foreach ($query->rows as $q) {
if(!in_array($q['email'], $data)) { array_push($data, $q['email']); } if(validemail($q['email']) && !in_array($q['email'], $data)) { array_push($data, $q['email']); }
} }
} }