bug 867320

This commit is contained in:
Marc Delisle
2003-12-30 12:23:58 +00:00
parent 2f1812f256
commit 5e9411e18d
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-12-30 Marc Delisle <lem9@users.sourceforge.net>
* tbl_select.php: bug 867320, dropdowns in search page
2003-12-29 Alexander M. Turek <crazysexycool@derrabus.de>
* db_details_structure.php, libraries/mysql_charsets.lib.php:
- display database collation (MySQL >= 4.1.1);

View File

@@ -156,11 +156,13 @@ if (!isset($param) || $param[0] == '') {
// <markus@noga.de>
$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 ' <select name="fields[]">' . "\n";