// remove notice in ModuleGraph.php

This commit is contained in:
gRoussac committed 2013-11-26 23:39:28 +01:00
1 parent ef466ac47c
commit 5d511c1ac7
1 file changed
+2 -1
+2 -1
View File
@@ -222,7 +222,8 @@ abstract class ModuleGraphCore extends Module
protected function _displayCsv() protected function _displayCsv()
{ {
ob_end_clean(); if (ob_get_length())
ob_end_clean();
header('Content-Type: application/octet-stream'); header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$this->displayName.' - '.time().'.csv"'); header('Content-Disposition: attachment; filename="'.$this->displayName.' - '.time().'.csv"');
echo $this->_csv; echo $this->_csv;