From cc7cd4eca883f6df996f9a3914ab1b6bb4132d91 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Tue, 25 Jan 2011 00:28:52 +0530 Subject: [PATCH] To avoid php notices on undefined variables --- libraries/schema/Pdf_Relation_Schema.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index 73f075b02..46644dc61 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -979,14 +979,17 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema */ private function _strokeGrid() { - global $pdf, $with_doc; + global $pdf; $gridSize = 10; $labelHeight = 4; $labelWidth = 5; - if ($with_doc) { + if ($this->withDoc) { $topSpace = 6; $bottomSpace = 15; + } else { + $topSpace = 0; + $bottomSpace = 0; } $pdf->SetMargins(0, 0);