Fixed undefined index warning.

This commit is contained in:
Michal Čihař
2003-06-06 12:46:42 +00:00
parent c19a9c0d31
commit 2f4458b731
2 changed files with 5 additions and 4 deletions

View File

@@ -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 <lem9@users.sourceforge.net>
* Documentation.html: new faq 6.20 about CREATE TEMPORARY TABLES

View File

@@ -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');
?>
?>