diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Report/ReportHtmlImage.php | 2 | ||||
| -rw-r--r-- | app/Report/ReportPdfImage.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Report/ReportHtmlImage.php b/app/Report/ReportHtmlImage.php index 2609ed6d2b..c35dfcdeb4 100644 --- a/app/Report/ReportHtmlImage.php +++ b/app/Report/ReportHtmlImage.php @@ -31,7 +31,7 @@ class ReportHtmlImage extends ReportBaseImage */ public function render($renderer) { - global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright; + static $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright; // Get the current positions if ($this->x === ReportBaseElement::CURRENT_POSITION) { diff --git a/app/Report/ReportPdfImage.php b/app/Report/ReportPdfImage.php index a9788ae61e..947a2e7418 100644 --- a/app/Report/ReportPdfImage.php +++ b/app/Report/ReportPdfImage.php @@ -31,7 +31,7 @@ class ReportPdfImage extends ReportBaseImage */ public function render($renderer) { - global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright; + static $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright; // Check for a pagebreak first if ($renderer->checkPageBreakPDF($this->height + 5)) { |
