[-] BO: Fix PHP notice on ob_clean if no buffer to delete
This commit is contained in:
1 parent
d400059472
commit
0a8abd087a
2 files changed
+5
-3
No files matched your search
@@ -570,7 +570,8 @@ class AdminControllerCore extends Controller
|
|||||||
public function processExport()
|
public function processExport()
|
||||||
{
|
{
|
||||||
// clean buffer
|
// clean buffer
|
||||||
ob_clean();
|
if (ob_get_level() && ob_get_length() > 0)
|
||||||
|
ob_clean();
|
||||||
$this->getList($this->context->language->id);
|
$this->getList($this->context->language->id);
|
||||||
if (!count($this->_list))
|
if (!count($this->_list))
|
||||||
return;
|
return;
|
||||||
|
|||||||
+3
-2
@@ -81,8 +81,9 @@ class PDFCore
|
|||||||
|
|
||||||
if ($render)
|
if ($render)
|
||||||
{
|
{
|
||||||
// clean the output buffer to avoid random bugs with tcpdf
|
// clean the output buffer
|
||||||
@ob_end_clean(); //if you change zlib output compression setting in between ob_start and ob_end_clean or ob_end_flush, you will get an error
|
if (ob_get_level() && ob_get_length() > 0)
|
||||||
|
ob_clean();
|
||||||
return $this->pdf_renderer->render($this->filename, $display);
|
return $this->pdf_renderer->render($this->filename, $display);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user