aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-11 19:01:04 -0700
committerzotlabs <mike@macgirvin.com>2017-05-11 19:01:04 -0700
commit1de1b58a087afbadb55b7f18b93fb0b502a2de3a (patch)
tree4ccf01cfea90497acca5f58697653ec734b1cc02 /Zotlabs/Module
parent4f577cbdebea44dfedece4eeddb99138d5f02f65 (diff)
downloadvolse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.tar.gz
volse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.tar.bz2
volse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.zip
consolidate email validation checks
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Invite.php2
-rw-r--r--Zotlabs/Module/Settings/Account.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Invite.php b/Zotlabs/Module/Invite.php
index 6b6f80a31..927e7beae 100644
--- a/Zotlabs/Module/Invite.php
+++ b/Zotlabs/Module/Invite.php
@@ -49,7 +49,7 @@ class Invite extends \Zotlabs\Web\Controller {
if(! $recip)
continue;
- if(! valid_email($recip)) {
+ if(! validate_email($recip)) {
notice( sprintf( t('%s : Not a valid email address.'), $recip) . EOL);
continue;
}
diff --git a/Zotlabs/Module/Settings/Account.php b/Zotlabs/Module/Settings/Account.php
index ec176797d..18890e89f 100644
--- a/Zotlabs/Module/Settings/Account.php
+++ b/Zotlabs/Module/Settings/Account.php
@@ -16,7 +16,7 @@ class Account {
$account = \App::get_account();
if($email != $account['account_email']) {
- if(! valid_email($email))
+ if(! validate_email($email))
$errs[] = t('Not valid email.');
$adm = trim(get_config('system','admin_email'));
if(($adm) && (strcasecmp($email,$adm) == 0)) {