Fix CDR for json when read from the file system
This commit is contained in:
parent
d7ca2bddd2
commit
5a0017c5be
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue