diff --git a/ChangeLog b/ChangeLog index c2cf0a955..b210bf2ef 100755 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ $Source$ 2002-07-18 Steve Alberty * It is now possible to print stats for more than 2 GB (up to exa byte) * db_details_structure.php3: correct wrong link from table size to stats + * tbl_printview.php3: fixed warnings if relation is not defined 2002-07-17 Marc Delisle * lang/sync_lang.sh: support for multiple convertors (recode added), diff --git a/tbl_printview.php3 b/tbl_printview.php3 index e2d3688c4..a1a8b1142 100755 --- a/tbl_printview.php3 +++ b/tbl_printview.php3 @@ -155,7 +155,7 @@ while (list($key, $table) = each($the_tables)) { $fields_cnt = mysql_num_rows($result); // Check if we can use Relations (Mike Beck) - if ($cfgRelation['relation']) { + if (!empty($cfgRelation['relation'])) { // Find which tables are related with the current one and write it in // an array $res_rel = PMA_getForeigners($db, $table); @@ -165,7 +165,11 @@ while (list($key, $table) = each($the_tables)) { } else { $have_rel = FALSE; } - } // end if + } + else { + $have_rel = FALSE; + } + // end if /**