Function does not handle null values even if it was documented to handle them

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2014-10-04 19:13:34 +05:30
parent 69cb461454
commit efa06c360b
2 changed files with 9 additions and 9 deletions

View File

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

View File

@ -154,7 +154,7 @@ $columns = $GLOBALS['dbi']->getColumns($db, $table);
$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
);