Module: nagvis Branch: master Commit: bc6011a4a4d110ac3d6a5794472ade389d81ed82 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=bc6011a4a4d110ac3d6a5794472ade389d81ed82
Author: Lars Michelsen <[email protected]> Date: Sat Oct 31 20:10:40 2009 +0100 Fixed json parsing errors --- .../core/classes/GlobalBackendmklivestatus.php | 13 +++---------- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 7596571..9cef439 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -193,14 +193,9 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { $result = Array(); foreach($l as $line) { - $list = $line[0]; - if($list) { - $members = explode(",", $list); - foreach ($members as $m) { - $result[] = $m; - } - } + $result = array_merge($result, $line[0]); } + return $result; } @@ -586,9 +581,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { $result = Array(); foreach($l as $line) { - $parts = explode('|', $line); - $x = Array('host_name' => $parts[0], 'service_description' => $parts[1]); - $result[] = $x; + $result[] = Array('host_name' => $line[0], 'service_description' => $line[1]); } return $result; ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
