Module: nagvis
Branch: master
Commit: fd5f184182fac0e788c39d6e55a0099b990fb0f1
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=fd5f184182fac0e788c39d6e55a0099b990fb0f1

Author: LaMi <l...@vertical-visions.de>
Date:   Wed Jan  6 22:16:10 2010 +0100

Showing array values in value list as comma separated string instead of Array

---

 share/frontend/wui/classes/WuiMap.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/share/frontend/wui/classes/WuiMap.php 
b/share/frontend/wui/classes/WuiMap.php
index 5ab0a01..e51d05f 100644
--- a/share/frontend/wui/classes/WuiMap.php
+++ b/share/frontend/wui/classes/WuiMap.php
@@ -498,6 +498,11 @@ class WuiMap extends GlobalMap {
                                $value = $this->MAPCFG->getValue($obj['type'], 
$obj['id'], $key, FALSE);
                        }
                        
+                       // Change array to comma separated string
+                       if(is_array($value)) {
+                               $value = implode(',',$value);
+                       }
+                       
                        // Cleanup some bad signs
                        $value = str_replace('\"','&quot;', $value);
                        $value = str_replace('"','&quot;', $value);


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
Nagvis-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to