From b3f177ee988f80a8227b7deefb988090efc262bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 8 May 2014 10:24:15 +0200 Subject: [PATCH] Pass correct parameters to PDF schema methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All these take string as a parameter not a boolean values (as returned isset). Signed-off-by: Michal Čihař --- libraries/schema/Eps_Relation_Schema.class.php | 8 ++++---- libraries/schema/Pdf_Relation_Schema.class.php | 10 +++++----- libraries/schema/Svg_Relation_Schema.class.php | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libraries/schema/Eps_Relation_Schema.class.php b/libraries/schema/Eps_Relation_Schema.class.php index f0480f9e22..b7a8a2c48f 100644 --- a/libraries/schema/Eps_Relation_Schema.class.php +++ b/libraries/schema/Eps_Relation_Schema.class.php @@ -695,10 +695,10 @@ class PMA_Eps_Relation_Schema extends PMA_Export_Relation_Schema global $eps,$db; $this->setPageNumber($_POST['pdf_page_number']); - $this->setShowColor(isset($_POST['show_color'])); - $this->setShowKeys(isset($_POST['show_keys'])); - $this->setTableDimension(isset($_POST['show_table_dimension'])); - $this->setAllTablesSameWidth(isset($_POST['all_tables_same_width'])); + $this->setShowColor($_POST['show_color']); + $this->setShowKeys($_POST['show_keys']); + $this->setTableDimension($_POST['show_table_dimension']); + $this->setAllTablesSameWidth($_POST['all_tables_same_width']); $this->setOrientation($_POST['orientation']); $this->setExportType($_POST['export_type']); diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index 97d9c99f54..9adb5e5229 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -828,11 +828,11 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema global $pdf, $db; $this->setPageNumber($_POST['pdf_page_number']); - $this->setShowGrid(isset($_POST['show_grid'])); - $this->setShowColor(isset($_POST['show_color'])); - $this->setShowKeys(isset($_POST['show_keys'])); - $this->setTableDimension(isset($_POST['show_table_dimension'])); - $this->setAllTablesSameWidth(isset($_POST['all_tables_same_width'])); + $this->setShowGrid($_POST['show_grid']); + $this->setShowColor($_POST['show_color']); + $this->setShowKeys($_POST['show_keys']); + $this->setTableDimension($_POST['show_table_dimension']); + $this->setAllTablesSameWidth($_POST['all_tables_same_width']); $this->setWithDataDictionary($_POST['with_doc']); $this->setOrientation($_POST['orientation']); $this->setPaper($_POST['paper']); diff --git a/libraries/schema/Svg_Relation_Schema.class.php b/libraries/schema/Svg_Relation_Schema.class.php index 4cb0b9f19a..a836cb6063 100644 --- a/libraries/schema/Svg_Relation_Schema.class.php +++ b/libraries/schema/Svg_Relation_Schema.class.php @@ -667,10 +667,10 @@ class PMA_Svg_Relation_Schema extends PMA_Export_Relation_Schema global $svg,$db; $this->setPageNumber($_POST['pdf_page_number']); - $this->setShowColor(isset($_POST['show_color'])); - $this->setShowKeys(isset($_POST['show_keys'])); - $this->setTableDimension(isset($_POST['show_table_dimension'])); - $this->setAllTablesSameWidth(isset($_POST['all_tables_same_width'])); + $this->setShowColor($_POST['show_color']); + $this->setShowKeys($_POST['show_keys']); + $this->setTableDimension($_POST['show_table_dimension']); + $this->setAllTablesSameWidth($_POST['all_tables_same_width']); $this->setExportType($_POST['export_type']); $svg = new PMA_SVG();