aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-09 19:39:30 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-09 19:39:30 +0000
commit721ce0f934d900bbd1e78a1707195627b223141a (patch)
treecf69445c8d0ab8c322eff0f40dec49229b68a52b /admin
parentf2a49cabba654c3ede4040e7fa530c16630632c2 (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')
-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,