Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-04-25 22:09:04 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-04-25 22:09:04 +0400
commit4ff76ff31c08d3a92cc6e08f84794fe9603141f4 (patch)
tree78c324d497d5224f35e5f44c74d78af365082cf4 /pmd_relation_new.php
parentd6e05d74b5c312c65e20f1a1ac3e5cc9320fd630 (diff)
Coding style improvements (Inline control structures are discouraged)
Diffstat (limited to 'pmd_relation_new.php')
-rw-r--r--pmd_relation_new.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/pmd_relation_new.php b/pmd_relation_new.php
index 852cf05779..231e4a8a5e 100644
--- a/pmd_relation_new.php
+++ b/pmd_relation_new.php
@@ -33,14 +33,16 @@ if (PMA_foreignkey_supported($type_T1) && PMA_foreignkey_supported($type_T2) &&
// improve: check all other requirements for InnoDB relations
$result = PMA_DBI_query('SHOW INDEX FROM ' . PMA_backquote($T1) . ';');
$index_array1 = array(); // will be use to emphasis prim. keys in the table view
- while ($row = PMA_DBI_fetch_assoc($result))
+ while ($row = PMA_DBI_fetch_assoc($result)) {
$index_array1[$row['Column_name']] = 1;
+ }
PMA_DBI_free_result($result);
$result = PMA_DBI_query('SHOW INDEX FROM ' . PMA_backquote($T2) . ';');
$index_array2 = array(); // will be used to emphasis prim. keys in the table view
- while ($row = PMA_DBI_fetch_assoc($result))
+ while ($row = PMA_DBI_fetch_assoc($result)) {
$index_array2[$row['Column_name']] = 1;
+ }
PMA_DBI_free_result($result);
if (! empty($index_array1[$F1]) && ! empty($index_array2[$F2])) {