diff --git a/tbl_printview.php b/tbl_printview.php index 02ff2b82e..72d701700 100644 --- a/tbl_printview.php +++ b/tbl_printview.php @@ -120,20 +120,10 @@ foreach ($the_tables as $key => $table) { $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table)); // Check if we can use Relations (Mike Beck) - 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); - - if (count($res_rel) > 0) { - $have_rel = true; - } else { - $have_rel = false; - } - } else { - $have_rel = false; - } // end if - + // Find which tables are related with the current one and write it in + // an array + $res_rel = PMA_getForeigners($db, $table); + $have_rel = (bool) count($res_rel); /** * Displays the comments of the table if MySQL >= 3.23