fixed warnings if relation is not defined

This commit is contained in:
Steve Alberty
2002-07-18 16:32:57 +00:00
parent 93d1796b06
commit e54352f9c6
2 changed files with 7 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ $Source$
2002-07-18 Steve Alberty <staybyte@users.sourceforge.net>
* 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 <lem9@users.sourceforge.net>
* lang/sync_lang.sh: support for multiple convertors (recode added),

View File

@@ -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
/**