diff --git a/ChangeLog b/ChangeLog index c4aa16899..288ab7a27 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2006-02-19 Marc Delisle * libraries/common.lib.php: re-establish previous error reporting mode + * sql.php: bug #1434576, undefined variable $db 2006-02-19 Sebastian Mendel * libraries/common.lib.php PMA_getUvaCondition(): diff --git a/sql.php b/sql.php index d2248f8ef..6909ded61 100644 --- a/sql.php +++ b/sql.php @@ -739,7 +739,7 @@ else { } // hide edit and delete links for information_schema - if ( PMA_MYSQL_INT_VERSION >= 50002 && $db == 'information_schema' ) { + if ( PMA_MYSQL_INT_VERSION >= 50002 && isset($db) && $db == 'information_schema' ) { $disp_mode = 'nnnn110111'; }