From a4a372597d7a19b10a76b446435acfdab611afbb Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 10 Mar 2005 21:40:44 +0000 Subject: [PATCH] bug #1159415 --- ChangeLog | 3 +++ libraries/relation.lib.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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++;