mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix CDR for json when read from the file system
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user