Avoid current page being reset to initial page when an empty table is encountered.
This commit is contained in:
@@ -152,7 +152,7 @@ class PMA_PDF extends TCPDF
|
|||||||
// Now let's start to write the table
|
// Now let's start to write the table
|
||||||
$row = 0;
|
$row = 0;
|
||||||
$tmpheight = array();
|
$tmpheight = array();
|
||||||
$maxpage = 0;
|
$maxpage = $this->page;
|
||||||
|
|
||||||
while ($data = PMA_DBI_fetch_row($this->results)) {
|
while ($data = PMA_DBI_fetch_row($this->results)) {
|
||||||
$this->page = $currpage;
|
$this->page = $currpage;
|
||||||
|
Reference in New Issue
Block a user