dont display bookmark selection fieldset if no bookmark exists

This commit is contained in:
Sebastian Mendel
2005-09-28 07:36:14 +00:00
parent 06fd6260d8
commit 1c16f918a8
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,8 @@ $Id$
$Source$ $Source$
2005-09-27 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-09-27 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/sql_query_form.lib.php: removed unneeded variable * libraries/sql_query_form.lib.php: removed unneeded variable,
dont display bookmark selection fieldset if no bookmark exists
2005-09-27 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-09-27 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/sql_query_form.lib.php, db_details.php, server_sql.php * libraries/sql_query_form.lib.php, db_details.php, server_sql.php

View File

@@ -374,7 +374,7 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
function PMA_sqlQueryFormBookmark() { function PMA_sqlQueryFormBookmark() {
$bookmark_list = PMA_listBookmarks( $bookmark_list = PMA_listBookmarks(
$GLOBALS['db'], $GLOBALS['cfg']['Bookmark'] ); $GLOBALS['db'], $GLOBALS['cfg']['Bookmark'] );
if ( count( $bookmark_list ) < 1 ) { if ( ! $bookmark_list || count( $bookmark_list ) < 1 ) {
return; return;
} }