From b43f76e8d014dade8fe9a29e475bb6edac8ac611 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 22 Jun 2005 12:33:05 +0000 Subject: [PATCH] fix bug #1225315, wrong message for not dropping a DB --- ChangeLog | 2 ++ server_databases.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ffb0cc9ff..6afc9c7ff 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ $Id$ $Source$ 2005-06-22 Garvin Hicking + * server_databases.php: Bug #1225315, wrong message displayed + when no databases were dropped. * tbl_properties.inc.php: Patch #1225452, JS error for getting the value of a select field in certain browsers. diff --git a/server_databases.php b/server_databases.php index d70d7bc8f..b790e0b8f 100644 --- a/server_databases.php +++ b/server_databases.php @@ -80,7 +80,11 @@ if ((!empty($drop_selected_dbs) || isset($query_type)) && ($is_superuser || $cfg $submit_mult = 'drop_db' ; $err_url = 'server_databases.php?' . PMA_generate_common_url(); require('./mult_submits.inc.php'); - $message = sprintf($strDatabasesDropped, count($selected)); + if ($mult_btn == $strYes) { + $message = sprintf($strDatabasesDropped, count($selected)); + } else { + $message = sprintf($strDatabasesDropped, 0); + } // we need to reload the database list now. PMA_availableDatabases(); $reload = 1;