Fix errors when bookmarktable does not exists (bug #922509).

This commit is contained in:
Michal Čihař
2004-03-25 10:25:22 +00:00
parent cf4bba92d9
commit 98e613a201
2 changed files with 5 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2004-03-25 Michal Cihar <michal@cihar.com>
* libraries/bookmark.lib.php: Fix errors when bookmarktable does not
exists (bug #922509).
2004-03-24 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php: bug 922553, wrong boundary check in
PMA_flipstring(), thanks to Virgile Petit (pvtc)

View File

@@ -102,6 +102,7 @@ function PMA_queryBookmarks($db, $cfgBookmark, $id, $id_field = 'id', $action_bo
. ' OR user = \'\')' )
. ' AND ' . PMA_backquote($id_field) . ' = ' . $id;
$result = PMA_DBI_try_query($query, $dbh);
if (!$result) return FALSE;
list($bookmark_query) = PMA_DBI_fetch_row($result) or array(FALSE);
return $bookmark_query;