From 5e9411e18daa2afa8b1c38a167d20826d8a44daf Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 30 Dec 2003 12:23:58 +0000 Subject: [PATCH] bug 867320 --- ChangeLog | 3 +++ tbl_select.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6bc4db373..e9067e7fa 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-12-30 Marc Delisle + * tbl_select.php: bug 867320, dropdowns in search page + 2003-12-29 Alexander M. Turek * db_details_structure.php, libraries/mysql_charsets.lib.php: - display database collation (MySQL >= 4.1.1); diff --git a/tbl_select.php b/tbl_select.php index dc32b3eb7..320b65ea2 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -156,11 +156,13 @@ if (!isset($param) || $param[0] == '') { // $field = $fields_list[$i]; - require_once('./libraries/get_foreign.lib.php'); + // do not use require_once here + require('./libraries/get_foreign.lib.php'); echo "\n"; // we got a bug report: in some cases, even if $disp is true, // there are no rows, so we add a fetch_array + if ($foreigners && isset($foreigners[$field]) && isset($disp) && $disp && @PMA_mysql_fetch_array($disp)) { // f o r e i g n k e y s echo '