From 721ce0f934d900bbd1e78a1707195627b223141a Mon Sep 17 00:00:00 2001 From: z0rglub Date: Thu, 9 Oct 2003 19:39:30 +0000 Subject: 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 --- admin/user_modify.php | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit v1.2.3