[-] CORE : Remove notices on ob clean
This commit is contained in:
@@ -463,8 +463,9 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
|
||||
if (!$extension || !Validate::isFileName($filename))
|
||||
die(Tools::displayError());
|
||||
|
||||
ob_end_clean();
|
||||
|
||||
if (ob_get_level() && ob_get_length() > 0)
|
||||
ob_end_clean();
|
||||
header('Content-Type: '.$extension);
|
||||
header('Content-Disposition:attachment;filename="'.$filename.'"');
|
||||
readfile(_PS_UPLOAD_DIR_.$filename);
|
||||
|
||||
Reference in New Issue
Block a user