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

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