mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43: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;
|
$tmp_dir = $_SESSION['switch']['log']['dir'].'/xml_cdr/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day;
|
||||||
if (file_exists($tmp_dir.'/'.$uuid.'.json')) {
|
if (file_exists($tmp_dir.'/'.$uuid.'.json')) {
|
||||||
$format = "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')) {
|
if (file_exists($tmp_dir.'/'.$uuid.'.xml')) {
|
||||||
$format = "xml";
|
$format = "xml";
|
||||||
|
|||||||
Reference in New Issue
Block a user