From 8ff30cf5a183ae4478532fa85d71fe9c197da8af Mon Sep 17 00:00:00 2001 From: denise Date: Mon, 14 May 2012 11:58:07 -0400 Subject: [PATCH] CC-3797: Feedback Metrics "Show Me What I Am Sending" doesnt show all of the fields that are being sent -fixed --- airtime_mvc/application/models/Preference.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 93b42384c..0820357e7 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -397,7 +397,7 @@ class Application_Model_Preference return $out; } - public static function GetSystemInfo($returnArray=false, $p_testing) + public static function GetSystemInfo($returnArray=false, $p_testing=false) { exec('/usr/bin/airtime-check-system --no-color', $output); @@ -464,7 +464,7 @@ class Application_Model_Preference if($key == 'SAAS' && ($out != '' || $out != 'disabled')){ continue; } - if($out != ''){ + if($out != '' || is_numeric($out)){ if($key == "STREAM_INFO"){ $outputString .= $key." :\n"; foreach($out as $s_info){ @@ -472,6 +472,12 @@ class Application_Model_Preference $outputString .= "\t".strtoupper($k)." : ".$v."\n"; } } + }else if ($key == "SOUNDCLOUD_ENABLED") { + if ($out) { + $outputString .= $key." : TRUE\n"; + } else if (!$out) { + $outputString .= $key." : FALSE\n"; + } }else{ $outputString .= $key.' : '.$out."\n"; }