diff --git a/pdf_pages.php3 b/pdf_pages.php3
index 8bfe64e6c..e418ee0d3 100755
--- a/pdf_pages.php3
+++ b/pdf_pages.php3
@@ -63,7 +63,9 @@ if ($cfgRelation['pdfwork']) {
break;
case 'edcoord':
- while (list($key, $arrvalue) = each($ctable)) {
+ for ($i = 0; $i < $c_table_rows; $i++) {
+ $arrvalue = 'c_table_' . $i;
+ $arrvalue = $$arrvalue;
if (!isset($arrvalue['x']) || $arrvalue['x'] == '') {
$arrvalue['x'] = 0;
}
@@ -96,7 +98,7 @@ if ($cfgRelation['pdfwork']) {
}
PMA_query_as_cu($ch_query);
} // end if
- } // end while
+ } // end for
break;
} // end switch
} // end if (isset($do))
@@ -199,7 +201,7 @@ if ($cfgRelation['pdfwork']) {
}
echo '>';
echo "\n" . '
'
- . "\n" . ' | ';
echo "\n" . ' '
- . "\n" . ' ' . $strDelete;
+ . "\n" . ' ' . $strDelete;
echo "\n" . ' | ';
echo "\n" . ' '
- . "\n" . ' ';
+ . "\n" . ' ';
echo "\n" . ' | ';
echo "\n" . ' '
- . "\n" . ' ';
+ . "\n" . ' ';
echo "\n" . ' | ';
echo "\n" . ' ';
$i++;
@@ -231,7 +233,7 @@ if ($cfgRelation['pdfwork']) {
}
echo '>';
echo "\n" . ' '
- . "\n" . ' ';
+ . "\n" . ' ';
reset($selectboxall);
while (list($key, $value) = each($selectboxall)) {
echo "\n" . ' ';
@@ -239,17 +241,18 @@ if ($cfgRelation['pdfwork']) {
echo "\n" . ' '
. "\n" . ' | ';
echo "\n" . ' '
- . "\n" . ' ' . $strDelete;
+ . "\n" . ' ' . $strDelete;
echo "\n" . ' | ';
echo "\n" . ' '
- . "\n" . ' ';
+ . "\n" . ' ';
echo "\n" . ' | ';
echo "\n" . ' '
- . "\n" . ' ';
+ . "\n" . ' ';
echo "\n" . ' | ';
echo "\n" . ' ';
echo "\n" . ' ' . "\n";
+ echo "\n" . ' ';
echo "\n" . ' ';
echo "\n" . '' . "\n\n";
} // end if