bug if no display field

This commit is contained in:
Marc Delisle
2002-11-21 13:15:11 +00:00
parent adbad87021
commit bbb31a0126
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-11-21 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php3: undefined variable $display_field
2002-11-21 Alexander M. Turek <rabus@users.sourceforge.net> 2002-11-21 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/japanese-*.inc.php3: Updates. * lang/japanese-*.inc.php3: Updates.

View File

@@ -6,7 +6,6 @@
* Set of functions used to display the records returned by a sql query * Set of functions used to display the records returned by a sql query
*/ */
if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
define('PMA_DISPLAY_TBL_LIB_INCLUDED', 1); define('PMA_DISPLAY_TBL_LIB_INCLUDED', 1);
@@ -1505,8 +1504,8 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
// check for display field? // check for display field?
if ($cfgRelation['displaywork']) { if ($cfgRelation['displaywork']) {
$display_field = PMA_getDisplayField($db, $rel[2]); $display_field = PMA_getDisplayField($db, $rel[2]);
$map[$rel[0]] = array($rel[2], $rel[3], $display_field);
} // end if } // end if
$map[$rel[0]] = array($rel[2], $rel[3], $display_field);
} // end while } // end while
} // end if } // end if
} // end 2b } // end 2b