[-] BO: Fix PHP notice on ob_clean if no buffer to delete

This commit is contained in:
Rémi Gaillard committed 2013-02-22 10:47:00 +01:00
1 parent d400059472
commit 0a8abd087a
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -570,7 +570,8 @@ class AdminControllerCore extends Controller
public function processExport()
{
// clean buffer
ob_clean();
if (ob_get_level() && ob_get_length() > 0)
ob_clean();
$this->getList($this->context->language->id);
if (!count($this->_list))
return;