No warning if no db defined.

This commit is contained in:
Michal Čihař
2005-10-17 12:19:31 +00:00
parent e0642c6751
commit a0e7436d37
2 changed files with 2 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ $Source$
* libraries/common.lib.php: Group databases by rightmost separator (bug
#1325651).
* libraries/string.lib.php: Fix escaping detection on multi byte strings.
* libraries/sql_query_form.lib.php: No warning if no db defined.
2005-10-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* css/phpmyadmin.css.php: border around tabs bug #1326730

View File

@@ -376,8 +376,7 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
* @uses htmlspecialchars()
*/
function PMA_sqlQueryFormBookmark() {
$bookmark_list = PMA_listBookmarks(
$GLOBALS['db'], $GLOBALS['cfg']['Bookmark'] );
$bookmark_list = PMA_listBookmarks(isset($GLOBALS['db']) ? $GLOBALS['db'] : '', $GLOBALS['cfg']['Bookmark'] );
if ( ! $bookmark_list || count( $bookmark_list ) < 1 ) {
return;
}