1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Fix "Notice: Undefined index: foreign_keys_data"

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes
2021-06-27 15:46:57 +02:00
parent 12b62acdc7
commit 6529d81b71

View File

@@ -1965,6 +1965,10 @@ class Relation
return $foreigners[$column];
}
if (! isset($foreigners['foreign_keys_data'])) {
return false;
}
$foreigner = [];
foreach ($foreigners['foreign_keys_data'] as $one_key) {
$column_index = array_search($column, $one_key['index_list']);