diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-10-09 19:39:30 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-10-09 19:39:30 +0000 |
commit | 721ce0f934d900bbd1e78a1707195627b223141a (patch) | |
tree | cf69445c8d0ab8c322eff0f40dec49229b68a52b /admin/user_modify.php | |
parent | f2a49cabba654c3ede4040e7fa530c16630632c2 (diff) |
if we try to modify the webmaster, we have to set the status to "admin"
git-svn-id: http://piwigo.org/svn/trunk@188 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/user_modify.php')
-rw-r--r-- | admin/user_modify.php | 5 |
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, |