initialize in case there are no databases (MySQL < 5.0)
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-11-18 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/database_interface.lib.php: initialize in case there are
|
||||||
|
no databases (MySQL < 5.0)
|
||||||
|
|
||||||
2005-11-18 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-11-18 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* server_databases.php:
|
* server_databases.php:
|
||||||
- require_once common.lib.php BEFORE ANYTHING else
|
- require_once common.lib.php BEFORE ANYTHING else
|
||||||
|
@@ -369,6 +369,10 @@ function PMA_DBI_get_tables_full( $database, $table = false,
|
|||||||
* @return array $databases
|
* @return array $databases
|
||||||
*/
|
*/
|
||||||
function PMA_DBI_get_databases_full( $database = NULL, $force_stats = false, $link = NULL ) {
|
function PMA_DBI_get_databases_full( $database = NULL, $force_stats = false, $link = NULL ) {
|
||||||
|
|
||||||
|
// initialize to avoid errors when there are no databases
|
||||||
|
$databases = array();
|
||||||
|
|
||||||
if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
|
if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
|
||||||
// get table information from information_schema
|
// get table information from information_schema
|
||||||
if ( $database ) {
|
if ( $database ) {
|
||||||
|
Reference in New Issue
Block a user