bug 930445 when table_info not defined
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2004-04-13 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/relation.lib.php: bug 930445 when PMA_table_info not defined,
|
||||
thanks to Philippe Jausions (jausions)
|
||||
|
||||
2004-04-12 Marcel Tschopp <marcel.tschopp@gmx.net>
|
||||
* left.php, tbl_properties_structure.php, libraries/mysql_charsets.lib.php,
|
||||
libraries/relation.lib.php: Changed some queries to use
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
// vim: expandtab sw=4 ts=4 sts=4:
|
||||
|
||||
error_reporting(E_ALL);
|
||||
/**
|
||||
* Set of functions used with the relation and pdf feature
|
||||
*/
|
||||
@@ -362,6 +362,9 @@ function PMA_getForeigners($db, $table, $column = '', $source = 'both') {
|
||||
*/
|
||||
function PMA_getDisplayField($db, $table) {
|
||||
global $cfgRelation;
|
||||
if (trim(@$cfgRelation['table_info']) == '') {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
$disp_query = 'SELECT display_field FROM ' . PMA_backquote($cfgRelation['table_info'])
|
||||
. ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
|
||||
|
Reference in New Issue
Block a user