Browse Source

Fix warning

Laurent Destailleur 1 year ago
parent
commit
c7bce53c7f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      htdocs/intracommreport/class/intracommreport.class.php

+ 3 - 2
htdocs/intracommreport/class/intracommreport.class.php

@@ -480,9 +480,10 @@ class IntracommReport extends CommonObject
 	/**
 	 *	Generate XML file
 	 *
+	 *  @param		string		$content_xml	Content
 	 *	@return		void
 	 */
-	public function generateXMLFile()
+	public function generateXMLFile($content_xml)
 	{
 		$name = $this->period.'.xml';
 
@@ -490,7 +491,7 @@ class IntracommReport extends CommonObject
 		$fname = sys_get_temp_dir().'/'.$name;
 
 		$f = fopen($fname, 'w+');
-		fwrite($f, $this->content_xml);
+		fwrite($f, $content_xml);
 		fclose($f);
 
 		header('Content-Description: File Transfer');