Skip to content

Commit

Permalink
Function does not handle null values even if it was documented to han…
Browse files Browse the repository at this point in the history
…dle them

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Oct 4, 2014
1 parent 69cb461 commit efa06c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions libraries/tbl_relation.lib.php
Expand Up @@ -170,14 +170,14 @@ function PMA_generateRelationalDropdown(
/**
* Function to get html for the common form
*
* @param string $db current database
* @param string $table current table
* @param array $columns columns
* @param array $cfgRelation configuration relation
* @param string $tbl_storage_engine table storage engine
* @param array|null $existrel db, table, column
* @param array|null $existrel_foreign db, table, column
* @param array $options_array options array
* @param string $db current database
* @param string $table current table
* @param array $columns columns
* @param array $cfgRelation configuration relation
* @param string $tbl_storage_engine table storage engine
* @param array $existrel db, table, column
* @param array $existrel_foreign db, table, column
* @param array $options_array options array
*
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion tbl_relation.php
Expand Up @@ -154,7 +154,7 @@
$html_output .= PMA_getHtmlForCommonForm(
$db, $table, $columns, $cfgRelation, $tbl_storage_engine,
isset($existrel) ? $existrel : array(),
isset($existrel_foreign) ? $existrel_foreign['foreign_keys_data'] : null,
isset($existrel_foreign) ? $existrel_foreign['foreign_keys_data'] : array(),
$options_array
);

Expand Down

0 comments on commit efa06c3

Please sign in to comment.