Remove unused upubkey and uprvkey from queries

- Switched queries to new dba::* functions
This commit is contained in:
Hypolite Petovan 2017-11-26 14:55:47 -05:00
commit 2196a0577b
8 changed files with 49 additions and 43 deletions

View file

@ -506,14 +506,14 @@ function settings_post(App $a) {
}
// check the email is valid
if (!valid_email($email)) {
$err .= t(' Not valid email.');
$err .= t('Invalid email.');
}
// ensure new email is not the admin mail
//if ((x($a->config, 'admin_email')) && (strcasecmp($email, $a->config['admin_email']) == 0)) {
if (x($a->config, 'admin_email')) {
$adminlist = explode(",", str_replace(" ", "", strtolower($a->config['admin_email'])));
if (in_array(strtolower($email), $adminlist)) {
$err .= t(' Cannot change to that email.');
$err .= t('Cannot change to that email.');
$email = $a->user['email'];
}
}