From 21c0831516a276b717e8da5a0d1c1526b7d62e7a Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 10 Feb 2003 18:26:29 +0000 Subject: [PATCH] Ensured that the database list is built. --- ChangeLog | 2 ++ server_databases.php3 | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index e50be2fe5..5ba266789 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-02-10 Alexander M. Turek + * server_databases.php3: Ensured that the database list is built. 2003-02-10 Marc Delisle * lang/catalan: update, thanks to Xavier Navarro diff --git a/server_databases.php3 b/server_databases.php3 index 9a0b9f739..9124d8937 100644 --- a/server_databases.php3 +++ b/server_databases.php3 @@ -46,6 +46,14 @@ function PMA_dbCmp($a, $b) } // end of the 'PMA_dbCmp()' function +/** + * Gets the databases list - if it has not been built yet + */ +if ($server > 0 && empty($dblist)) { + PMA_availableDatabases(); +} + + /** * Drops multiple databases */