From 5d7b5321feaa3a4a30351971eb238272a1f6ea25 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 21 Jun 2014 23:49:21 +0000 Subject: [PATCH] Fix CDR for json when read from the file system --- app/xml_cdr/xml_cdr_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php index 5407d0eaa4..1a3f8ae386 100644 --- a/app/xml_cdr/xml_cdr_details.php +++ b/app/xml_cdr/xml_cdr_details.php @@ -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";