bug #1388135, IE and dropping databases

This commit is contained in:
Marc Delisle
2005-12-30 21:45:17 +00:00
parent 95c3882684
commit 337d66f75e
2 changed files with 11 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-12-30 Marc Delisle <lem9@users.sourceforge.net>
* server_databases.php: bug #1388135, IE and dropping databases
2005-12-27 Marc Delisle <lem9@users.sourceforge.net> 2005-12-27 Marc Delisle <lem9@users.sourceforge.net>
* main.php, libraries/check_user_privileges.lib.php: * main.php, libraries/check_user_privileges.lib.php:
- reenable a non-privileged user to change his password - reenable a non-privileged user to change his password

View File

@@ -66,6 +66,14 @@ $dbstats = empty( $dbstats ) ? 0 : 1;
/** /**
* Drops multiple databases * Drops multiple databases
*/ */
// workaround for IE behavior (it returns some coordinates based on where
// the mouse was on the Drop image):
if (isset($drop_selected_dbs_x)) {
$drop_selected_dbs = 'Drop';
}
if ((!empty($drop_selected_dbs) || isset($query_type)) && ($is_superuser || $cfg['AllowUserDropDatabase'])) { if ((!empty($drop_selected_dbs) || isset($query_type)) && ($is_superuser || $cfg['AllowUserDropDatabase'])) {
if (empty($selected_db) && ! (isset($query_type) && !empty($selected))) { if (empty($selected_db) && ! (isset($query_type) && !empty($selected))) {
$message = $strNoDatabasesSelected; $message = $strNoDatabasesSelected;