From 7c066037ffc9c5997ab03e32607c87f8c625d906 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 14 Jun 2014 08:29:57 +0000 Subject: [PATCH] Correct the syntax and remove test code --- app/xml_cdr/xml_cdr_details.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php index 6f2266d220..0acc2699e6 100644 --- a/app/xml_cdr/xml_cdr_details.php +++ b/app/xml_cdr/xml_cdr_details.php @@ -97,10 +97,6 @@ else { //get the header require_once "resources/header.php"; -print_r($array); - -exit; - //page title and description echo "
"; echo "\n"; @@ -152,7 +148,7 @@ exit; $context = check_str(urldecode($row["caller_profile"]["context"])); $network_addr = check_str(urldecode($row["caller_profile"]["network_addr"])); } - $caller_id_name = check_str(urldecode($row["caller_profile"]["caller_id_name"]); + $caller_id_name = check_str(urldecode($row["caller_profile"]["caller_id_name"])); $caller_id_number = check_str(urldecode($row["caller_profile"]["caller_id_number"])); $x++; } @@ -339,9 +335,9 @@ exit; echo "\n"; //foreach($array["variables"] as $key => $value) { - foreach ($xml->app_log->application as $row) { - $app_name = $row->attributes()->app_name; - $app_data = $row->attributes()->app_data; + foreach ($row["app_log"]["application"] as $row) { + $app_name = $row["@attributes"]["app_name"]; + $app_data = $row["@attributes"]["app_data"]; echo "\n"; echo " \n"; echo " \n"; @@ -390,7 +386,7 @@ exit; echo " \n"; echo "
".$app_name." ".wordwrap($app_data,75,"
\n", TRUE)." 
\n"; - //extension->attributes + //extension attributes echo "\n"; echo " \n"; echo " \n"; @@ -415,7 +411,7 @@ exit; echo " \n"; echo "
".$text['label-call-flow-2']." 
\n"; - //extension->application + //extension application echo "\n"; echo " \n"; echo " \n";
".$text['label-call-flow-3']."