aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/user_modify.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/user_modify.php b/admin/user_modify.php
index 92ea7188f..79425e5f8 100644
--- a/admin/user_modify.php
+++ b/admin/user_modify.php
@@ -66,6 +66,11 @@ if ( sizeof( $error ) == 0 and isset( $_POST['submit'] ) )
{
$use_new_password = true;
}
+ // if we try to update the webmaster infos, we have to set the status to
+ // 'admin'
+ if ( $row['username'] == $conf['webmaster'] )
+ $_POST['status'] = 'admin';
+
$error = array_merge( $error, update_user(
$_GET['user_id'], $_POST['mail_address'],
$_POST['status'], $use_new_password,