Fix errors when bookmarktable does not exists (bug #922509).
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$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>
|
2004-03-24 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/common.lib.php: bug 922553, wrong boundary check in
|
* libraries/common.lib.php: bug 922553, wrong boundary check in
|
||||||
PMA_flipstring(), thanks to Virgile Petit (pvtc)
|
PMA_flipstring(), thanks to Virgile Petit (pvtc)
|
||||||
|
@@ -102,6 +102,7 @@ function PMA_queryBookmarks($db, $cfgBookmark, $id, $id_field = 'id', $action_bo
|
|||||||
. ' OR user = \'\')' )
|
. ' OR user = \'\')' )
|
||||||
. ' AND ' . PMA_backquote($id_field) . ' = ' . $id;
|
. ' AND ' . PMA_backquote($id_field) . ' = ' . $id;
|
||||||
$result = PMA_DBI_try_query($query, $dbh);
|
$result = PMA_DBI_try_query($query, $dbh);
|
||||||
|
if (!$result) return FALSE;
|
||||||
list($bookmark_query) = PMA_DBI_fetch_row($result) or array(FALSE);
|
list($bookmark_query) = PMA_DBI_fetch_row($result) or array(FALSE);
|
||||||
|
|
||||||
return $bookmark_query;
|
return $bookmark_query;
|
||||||
|
Reference in New Issue
Block a user