aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2011-01-05 07:37:01 +0100
committerroot <root@diekershoff.homeunix.net>2011-01-05 07:37:01 +0100
commit830a56723c37e206f2114c4bc4ade080f475cba9 (patch)
tree01741f63f64cdd7f430fd70deba74cc510a20846 /mod/settings.php
parentcbace1639e7eb9c543a2ba0b51619a7f4164ae64 (diff)
parentbb0c24bd4fd159cc005f60a0808a4b37b91060b0 (diff)
downloadvolse-hubzilla-830a56723c37e206f2114c4bc4ade080f475cba9.tar.gz
volse-hubzilla-830a56723c37e206f2114c4bc4ade080f475cba9.tar.bz2
volse-hubzilla-830a56723c37e206f2114c4bc4ade080f475cba9.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/settings.php b/mod/settings.php
index a40883f35..9a9fde5c6 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -95,6 +95,10 @@ function settings_post(&$a) {
$email_changed = true;
if(! valid_email($email))
$err .= t(' Not valid email.');
+ if((x($a->config,'admin_email')) && (strcasecmp($email,$a->config['admin_email']) == 0)) {
+ $err .= t(' Cannot change to that email.');
+ $email = $a->user['email'];
+ }
}
if(strlen($err)) {