From 59bdd7f0b4be4794c7cf453246c329f9fad7caaa Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 30 Mar 2005 18:17:40 +0000 Subject: [PATCH] Bug #1172782 --- ChangeLog | 4 ++++ server_databases.php | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c2444386e..807e4c867 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-03-30 Alexander M. Turek + * server_databases.php: Bug #1172782 (Don't allow to drop + information_schema). + 2005-03-30 Marc Delisle * Documentation.html: Patch #1164699, clarification about PmaAbsoluteURI, thanks to Isaac Bennetch - ibennetch diff --git a/server_databases.php b/server_databases.php index 6b5cc2b9d..d70d7bc8f 100644 --- a/server_databases.php +++ b/server_databases.php @@ -237,9 +237,11 @@ if (count($statistics) > 0) { $total_calc['tot_sz'] += $current['tot_sz']; echo ' ' . "\n"; if ($is_superuser || $cfg['AllowUserDropDatabase']) { - echo ' ' . "\n" - . ' ' . "\n" - . ' ' . "\n"; + echo ' ' . "\n"; + if (PMA_MYSQL_INT_VERSION < 50002 || $current['db_name'] != 'information_schema') { + echo ' ' . "\n"; + } + echo ' ' . "\n"; } echo ' ' . "\n" . ' ' . "\n"