diff --git a/ChangeLog b/ChangeLog index 024b9b2262..2d85cd4431 100644 --- a/ChangeLog +++ b/ChangeLog @@ -60,6 +60,7 @@ phpMyAdmin - ChangeLog - issue #12055 Fixed PHP syntax error in templates - issue #12054 Fixed processing of queries with escaped quotes - issue #12041 Fixed exporting tables with fields DEFAULT and COMMENT +- issue #12073 Hide edit and delete buttons when the results are not related to a table 4.5.5.1 (2016-02-29) - issue #11971 CREATE UNIQUE INDEX index type is not recognized by parser. diff --git a/libraries/DisplayResults.php b/libraries/DisplayResults.php index cb1577963a..3ea5807fc8 100644 --- a/libraries/DisplayResults.php +++ b/libraries/DisplayResults.php @@ -574,6 +574,13 @@ class DisplayResults $prev_table = $fields_meta[$i]->table; } } // end for + + if ($prev_table == '') { // no table for any of the columns + // don't display links + $displayParts['edit_lnk'] = self::NO_EDIT_OR_DELETE; + $displayParts['del_lnk'] = self::NO_EDIT_OR_DELETE; + } + return $displayParts; }