Fix "Notice: Undefined index: foreign_keys_data"
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
12b62acdc7
commit
6529d81b71
@ -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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user