Merge branch '2455--6064-Error-Insert-data-nombre-de-XML-mal-construido' into 'develop'

Fixed bug in the construction of the name of the xml file

See merge request artica/pandorafms!1737
This commit is contained in:
vgilc 2018-10-25 13:20:05 +02:00
commit 3ed5b97e1d
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ function createXMLData($agent, $agentModule, $time, $data) {
$data
);
$file_name = $config["remote_config"] . "/" . io_safe_output($agent["alias"]) . "." . str_replace($time, " ", "_") . ".data";
$file_name = $config["remote_config"] . "/" . io_safe_output($agent["alias"]) . "." . strtotime($time) . ".data";
return (bool) @file_put_contents($file_name, $xml);
}