From af793e83ad719951bf70d98476cf27f5d9e07a69 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 1 Aug 2008 20:17:33 +0000 Subject: [PATCH] was showing the bookmark id instead of label --- libraries/bookmark.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/bookmark.lib.php b/libraries/bookmark.lib.php index 00d4731ac..7c632b071 100644 --- a/libraries/bookmark.lib.php +++ b/libraries/bookmark.lib.php @@ -58,7 +58,7 @@ function PMA_Bookmark_getParams() * * @param string the current database name * - * @return array the bookmarks list + * @return array the bookmarks list (key as index, label as value) * * @access public */ @@ -77,7 +77,7 @@ function PMA_Bookmark_getList($db) . ' AND (user = \'' . PMA_sqlAddslashes($cfgBookmark['user']) . '\'' . ' OR user = \'\')' . ' ORDER BY label'; - return PMA_DBI_fetch_result($query, 'label', 'id', $controllink, PMA_DBI_QUERY_STORE); + return PMA_DBI_fetch_result($query, 'id', 'label', $controllink, PMA_DBI_QUERY_STORE); } // end of the 'PMA_Bookmark_getList()' function