undefined pdf_page_number

This commit is contained in:
Marc Delisle 2007-01-02 14:55:40 +00:00
parent bcf28b61ea
commit 10b9a9b0f0
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2007-01-02 Marc Delisle <lem9@users.sourceforge.net>
* pdf_pages.php: undefined $pdf_page_number when no auto layout
2007-01-02 Michal Čihař <michal@cihar.com>
* libraries/export/sql.php: DELIMITER should not be commented out (bug
#1612870).

View File

@ -78,12 +78,11 @@ if ($cfgRelation['pdfwork']) {
. ' (db_name, page_descr)'
. ' VALUES (\'' . PMA_sqlAddslashes($db) . '\', \'' . PMA_sqlAddslashes($newpage) . '\')';
PMA_query_as_cu($ins_query, FALSE, $query_default_option);
$pdf_page_number = PMA_DBI_insert_id((isset($controllink)?$controllink:''));
// A u t o m a t i c l a y o u t
// ================================
if (isset($auto_layout_internal) || isset($auto_layout_innodb)) {
// save the page number
$pdf_page_number = PMA_DBI_insert_id((isset($controllink)?$controllink:''));
$all_tables = array();
}