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 d7ca2bddd2
commit 5a0017c5be
1 changed files with 1 additions and 1 deletions

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";