PHP 5.1.0-dev compatibility

This commit is contained in:
Marc Delisle
2005-10-19 13:33:18 +00:00
parent e58627459a
commit 98e04cadda
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2005-10-19 Marc Delisle <lem9@users.sourceforge.net>
* libraries/bookmark.lib.php: PHP 5.1.0-dev compatibility
2005-10-18 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* footer.inc.php, index.php, server_databases.php, libraries/querywindow.js:
fix problem not remembering selected server

View File

@@ -60,7 +60,7 @@ function PMA_listBookmarks($db, $cfgBookmark)
// There are some bookmarks -> store them
// use the unique id as the key
if ($result > 0 && PMA_DBI_num_rows($result) > 0) {
if ($result && PMA_DBI_num_rows($result) > 0) {
while ($row = PMA_DBI_fetch_row($result)) {
$bookmark_list[$row[1]] = $row[0];
} // end while