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

@@ -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;
}