Author:   Lars Michelsen <[email protected]>
Date:     Sun Sep  4 15:57:11 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Sep  4 15:57:11 2011 +0200

Bugfix: It is now possible to unset backend attributes using the "Edit backend" 
dialog

---

 share/server/core/classes/CoreModMainCfg.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/server/core/classes/CoreModMainCfg.php 
b/share/server/core/classes/CoreModMainCfg.php
index b4b2b5c..76e5857 100644
--- a/share/server/core/classes/CoreModMainCfg.php
+++ b/share/server/core/classes/CoreModMainCfg.php
@@ -208,8 +208,8 @@ class CoreModMainCfg extends CoreModule {
     protected function doBackendEdit($a) {
         // Loop all aviable options for this backend and set them when some is 
given in the response
         foreach($this->getBackendAttributes($a['backendtype']) AS $key => $arr)
-            if(isset($a['opts'][$key]) && $a['opts'][$key] != '')
-                
$this->CORE->getMainCfg()->setValue('backend_'.$a['opts']['backendid'],$key,$a['opts'][$key]);
+            if(isset($a['opts'][$key]))
+                
$this->CORE->getMainCfg()->setValue('backend_'.$a['opts']['backendid'], $key, 
$a['opts'][$key]);
 
         // Write the changes to the main configuration
         $this->CORE->getMainCfg()->writeConfig();
@@ -228,4 +228,4 @@ class CoreModMainCfg extends CoreModule {
         return true;
     }
 }
-?>
\ No newline at end of file
+?>


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to