To avoid php notices on undefined variables

This commit is contained in:
Madhura Jayaratne
2011-01-25 00:28:52 +05:30
parent 251ecae49d
commit cc7cd4eca8

View File

@@ -979,14 +979,17 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema
*/ */
private function _strokeGrid() private function _strokeGrid()
{ {
global $pdf, $with_doc; global $pdf;
$gridSize = 10; $gridSize = 10;
$labelHeight = 4; $labelHeight = 4;
$labelWidth = 5; $labelWidth = 5;
if ($with_doc) { if ($this->withDoc) {
$topSpace = 6; $topSpace = 6;
$bottomSpace = 15; $bottomSpace = 15;
} else {
$topSpace = 0;
$bottomSpace = 0;
} }
$pdf->SetMargins(0, 0); $pdf->SetMargins(0, 0);