Skip to content

Commit

Permalink
Improve comments and variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Nov 20, 2012
1 parent 177b459 commit 7ea4265
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libraries/relation.lib.php
Expand Up @@ -639,12 +639,12 @@ function PMA_getDisplayField($db, $table)
} // end of the 'PMA_getDisplayField()' function

/**
* Gets the comments for all rows of a table or the db itself
* Gets the comments for all columns of a table or the db itself
*
* @param string $db the name of the db to check for
* @param string $table the name of the table to check for
*
* @return array [field_name] = comment
* @return array [column_name] = comment
*
* @access public
*/
Expand All @@ -654,11 +654,11 @@ function PMA_getComments($db, $table = '')

if ($table != '') {
// MySQL native column comments
$fields = PMA_DBI_get_columns($db, $table, null, true);
if ($fields) {
foreach ($fields as $field) {
if (! empty($field['Comment'])) {
$comments[$field['Field']] = $field['Comment'];
$columns = PMA_DBI_get_columns($db, $table, null, true);
if ($columns) {
foreach ($columns as $column) {
if (! empty($column['Comment'])) {
$comments[$column['Field']] = $column['Comment'];
}
}
}
Expand Down

0 comments on commit 7ea4265

Please sign in to comment.