diff --git a/pdf_pages.php b/pdf_pages.php
index 04be3597b..1b065aaeb 100644
--- a/pdf_pages.php
+++ b/pdf_pages.php
@@ -83,7 +83,7 @@ if ($cfgRelation['pdfwork']) {
//
// TODO: support InnoDB
- if (isset($autolayout)) {
+ if (isset($auto_layout_internal)) {
// save the page number
$pdf_page_number = PMA_DBI_insert_id((isset($controllink)?$controllink:''));
@@ -167,7 +167,7 @@ if ($cfgRelation['pdfwork']) {
} // end if there are master tables
$chpage = $pdf_page_number;
- } // end if isset autolayout
+ } // end if isset auto_layout_internal
break;
@@ -257,7 +257,7 @@ if ($cfgRelation['pdfwork']) {
-
+
-
-
+
+