diff --git a/ChangeLog b/ChangeLog index 3a3dc23c6a..9a89d5c1a1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2006-02-13 Marc Delisle + * libraries/display_tbl.lib.php: bug #1425522, warning when calling + a stored procedure, thanks to JTC - jcqns + 2006-02-13 Sebastian Mendel * libraries/common.lib.php: - fixed bug #1416848 'Insert new row from Browse page' diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index e5fdd276cc..d8ed358ff9 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -677,11 +677,12 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ // Do not show comments, if using horizontalflipped mode, because of space usage if ($GLOBALS['cfg']['ShowBrowseComments'] && ($GLOBALS['cfgRelation']['commwork'] || PMA_MYSQL_INT_VERSION >= 40100) && $disp_direction != 'horizontalflipped') { $comments_map = array(); - foreach ($analyzed_sql[0]['table_ref'] as $tbl) { - - $tb = $tbl['table_true_name']; - - $comments_map[$tb] = PMA_getComments($db, $tb); + if (isset($analyzed_sql[0]) && is_array($analyzed_sql[0])) { + foreach ($analyzed_sql[0]['table_ref'] as $tbl) { + $tb = $tbl['table_true_name']; + $comments_map[$tb] = PMA_getComments($db, $tb); + unset($tb); + } } }