diff --git a/ChangeLog b/ChangeLog index 01b239c79..1657a4f82 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-03-06 Alexander M. Turek + * libraries/relation.lib.php: Bug #1159415. + 2005-03-10 Marc Delisle * libraries/database_interface.lib.php, libraries/relation.lib.php: problem with getting comments when creating a new table under MySQL 4.1.x diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php index 5dce1202f..308d70100 100644 --- a/libraries/relation.lib.php +++ b/libraries/relation.lib.php @@ -469,7 +469,7 @@ function PMA_getComments($db, $table = '') { } - if (PMA_DBI_num_rows($com_rs) > 0) { + if (isset($com_rs) && PMA_DBI_num_rows($com_rs) > 0) { $i = 0; while ($row = PMA_DBI_fetch_assoc($com_rs)) { $i++;