Fix CDR for json when read from the file system

This commit is contained in:
Mark Crane
2014-06-21 23:49:21 +00:00
parent f105cbbb84
commit 5d7b5321fe

View File

@@ -73,7 +73,7 @@ else {
$tmp_dir = $_SESSION['switch']['log']['dir'].'/xml_cdr/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day;
if (file_exists($tmp_dir.'/'.$uuid.'.json')) {
$format = "json";
$xml_string = file_get_contents($tmp_dir.'/'.$uuid.'.json');
$json_string = file_get_contents($tmp_dir.'/'.$uuid.'.json');
}
if (file_exists($tmp_dir.'/'.$uuid.'.xml')) {
$format = "xml";