You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-25 06:39:48 +03:00
Fix "Link not found!" on foreign columns
It also generated invalid queries with no column name to select. Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
@@ -4416,7 +4416,10 @@ class Results
|
||||
$relation = $map[$meta->name];
|
||||
// Field to display from the foreign table?
|
||||
$dispval = '';
|
||||
if ($relation[2] !== '') {
|
||||
|
||||
// Check that we have a valid column name
|
||||
// Relation::getDisplayField() returns false by default
|
||||
if ($relation[2] !== '' && $relation[2] !== false) {
|
||||
$dispval = $this->getFromForeign($relation, $whereComparison);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user