diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-26 14:43:24 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-03-26 14:43:24 +0000 |
commit | 7c9b819b90c949db12ae78520fcf42d0f0b9be56 (patch) | |
tree | 8bca55f8dac2178b5ef2a38d63f7c36b7ed0e23b | |
parent | Make some changes to how the visual confirmation is handled if zlib is unavai... (diff) | |
download | phpbb-7c9b819b90c949db12ae78520fcf42d0f0b9be56.tar.gz phpbb-7c9b819b90c949db12ae78520fcf42d0f0b9be56.tar.bz2 phpbb-7c9b819b90c949db12ae78520fcf42d0f0b9be56.zip |
Display an error if the user wasn't update rather than success [#1320]
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5729 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/admin/admin_users.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index fc282ba454..247b362fe8 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -707,8 +707,7 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) } else { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Admin_user_fail']; + message_die(GENERAL_ERROR, 'Admin_user_fail', '', __LINE__, __FILE__, $sql); } $message .= '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>'); |