From 2f4458b73136bf5bc941a4fc1840871fe4472a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 6 Jun 2003 12:46:42 +0000 Subject: [PATCH] Fixed undefined index warning. --- ChangeLog | 1 + pdf_pages.php3 | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c363b3d2e..084f53d1f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ $Source$ * tbl_query_box.php3: Don't add target if not in query window. * libraries/display_tbl.lib.php3: $cfg['LimitChars'] now limits all fields (RFE #742123). + * pdf_pages.php3: Fixed undefined index warning. 2003-06-05 Marc Delisle * Documentation.html: new faq 6.20 about CREATE TEMPORARY TABLES diff --git a/pdf_pages.php3 b/pdf_pages.php3 index 0d77228d2..e874e8d17 100755 --- a/pdf_pages.php3 +++ b/pdf_pages.php3 @@ -221,11 +221,11 @@ if ($cfgRelation['pdfwork']) { } // end if (isset($do)) // We will need an array of all tables in this db - $selectboxall[] = '--'; + $selectboxall = array('--'); $alltab_qry = 'SHOW TABLES FROM ' . PMA_backquote($db); $alltab_rs = @PMA_mysql_query($alltab_qry) or PMA_mysqlDie('', $alltab_qry, '', $err_url_0); - while (list($table) = @PMA_mysql_fetch_array($alltab_rs)) { - $selectboxall[] = $table; + while ($val = @PMA_mysql_fetch_array($alltab_rs)) { + $selectboxall[] = $table[0]; } @@ -440,4 +440,4 @@ if ($cfgRelation['pdfwork']) { */ echo "\n"; require('./footer.inc.php3'); -?> \ No newline at end of file +?>