diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php index d987ce639..794831dd0 100644 --- a/libraries/relation.lib.php +++ b/libraries/relation.lib.php @@ -380,7 +380,7 @@ function PMA_getForeigners($db, $table, $column = '', $source = 'both') if (($source == 'both' || $source == 'innodb') && strlen($table)) { $show_create_table_query = 'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table); - $show_create_table = PMA_DBI_fetch_value($show_create_table_query, 0, 1, $GLOBALS['controllink']); + $show_create_table = PMA_DBI_fetch_value($show_create_table_query, 0, 1); $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table)); foreach ($analyzed_sql[0]['foreign_keys'] as $one_key) {