Avoid current page being reset to initial page when an empty table is encountered.

This commit is contained in:
Madhura Jayaratne
2011-01-25 08:10:54 +05:30
parent cc7cd4eca8
commit e3870e938e

View File

@@ -152,7 +152,7 @@ class PMA_PDF extends TCPDF
// Now let's start to write the table
$row = 0;
$tmpheight = array();
$maxpage = 0;
$maxpage = $this->page;
while ($data = PMA_DBI_fetch_row($this->results)) {
$this->page = $currpage;