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

Author: Lars Michelsen <[email protected]>
Date:   Thu Jan 20 19:06:09 2011 +0100

Added some additional keys to ignore on json parsing

---

 share/server/core/classes/objects/NagVisObject.php |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/share/server/core/classes/objects/NagVisObject.php 
b/share/server/core/classes/objects/NagVisObject.php
index ca5fc08..1adff9d 100644
--- a/share/server/core/classes/objects/NagVisObject.php
+++ b/share/server/core/classes/objects/NagVisObject.php
@@ -241,17 +241,17 @@ class NagVisObject {
                // Need to remove some options which are not relevant
                // FIXME: Would be much better to name the needed vars explicit
                if(self::$arrDenyKeys == null)
-                       self::$arrDenyKeys = Array('CORE' => '', 'BACKEND' => 
'', 'MAPCFG' => '',
-                               'MAP' => '', 'GRAPHIC' => '', 'conf' => '', 
'services' => '',
-                               'fetchedChildObjects' => '', 'childObjects' => 
'', 'parentObjects' => '',
-                               'members' => '', 'objects' => '', 'linkedMaps' 
=> '', 'isSummaryObject' => '',
-                               'isView' => '', 'dateFormat' => '', 
'arrDenyKeys' => '');
+                       self::$arrDenyKeys = Array(
+                         'CORE' => '', 'BACKEND' => '', 'MAPCFG' => '', 'MAP'  
=> '', 'GRAPHIC' => '',
+                               'conf' => '', 'services' => '', 
'fetchedChildObjects' => '', 'childObjects' => '',
+                               'parentObjects' => '', 'members' => '', 
'objects' => '', 'linkedMaps' => '',
+                               'isSummaryObject' => '', 'isView' => '', 
'dateFormat' => '', 'arrDenyKeys' => '',
+                               'aStateCounts' => '',   'iconDetails' => '', 
'problem_msg' => '', 'isLoopingBacklink' => ''
+                       );
                
-               foreach($this AS $key => $val) {
-                       if(!isset(self::$arrDenyKeys[$key])) {
+               foreach($this AS $key => $val)
+                       if(!isset(self::$arrDenyKeys[$key]))
                                $arr[$key] = $val;
-                       }
-               }
 
                // Add special static options
                if($this instanceof NagVisStatefulObject)


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to