Module: nagvis
Branch: nagvis-1.4
Commit: d93c177b40016873699743a8be6d1dd544e70651
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=d93c177b40016873699743a8be6d1dd544e70651

Author: Lars Michelsen <[email protected]>
Date:   Tue Aug 18 21:11:27 2009 +0200

#77: WUI writes the internal backendid attribute to nagvis.ini.php when using 
backend management dialog

---

 nagvis/wui/includes/classes/WuiMainCfg.php |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/nagvis/wui/includes/classes/WuiMainCfg.php 
b/nagvis/wui/includes/classes/WuiMainCfg.php
index 12fc81f..b925514 100644
--- a/nagvis/wui/includes/classes/WuiMainCfg.php
+++ b/nagvis/wui/includes/classes/WuiMainCfg.php
@@ -168,7 +168,10 @@ class WuiMainCfg extends GlobalMainCfg {
                                                                        $item2 
= $val;
                                                                }
                                                                
-                                                               $content .= 
$key2.'="'.$item2.'"'."\n";
+                                                               // Don't write 
the backendid attribute (Is internal)
+                                                               if($key2 !== 
'backendid') {
+                                                                       
$content .= $key2.'="'.$item2.'"'."\n";
+                                                               }
                                                        }
                                                }
                                        }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to