Skip to content

Commit

Permalink
Bug Fix: Notices on table create page.
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Dhundhara <[email protected]>
  • Loading branch information
ashutoshdhundhara committed Apr 10, 2014
1 parent 26d49eb commit acbdaec
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libraries/tbl_columns_definition_form.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@
);
}
// Variable tell if current column is bound in a foreign key constraint or not.
$columnMeta['column_status'] = PMA_checkChildForeignReferences(
$_form_params['db'],
$_form_params['table'],
isset($columnMeta) ? $columnMeta['Field'] : null
);
if (isset($columnMeta['Field']) && isset($_form_params['table'])) {
$columnMeta['column_status'] = PMA_checkChildForeignReferences(
$_form_params['db'],
$_form_params['table'],
$columnMeta['Field']
);
}

$content_cells[$columnNumber] = PMA_getHtmlForColumnAttributes(
$columnNumber, isset($columnMeta) ? $columnMeta : null, strtoupper($type),
Expand Down

0 comments on commit acbdaec

Please sign in to comment.