Author:   Lars Michelsen <[email protected]>
Date:     Fri Oct 14 08:36:26 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Oct 14 08:36:26 2011 +0200

Bugfix: Fixed problem when editing the main configuration file

---

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

diff --git a/ChangeLog b/ChangeLog
index 28b1627..62a9fb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1.6rc3
+Frontend
+  * Bugfix: Fixed problem when editing the main configuration file
+
 1.6rc2
 
 Core
diff --git a/share/server/core/classes/CoreModMainCfg.php 
b/share/server/core/classes/CoreModMainCfg.php
index 76e5857..726e07d 100644
--- a/share/server/core/classes/CoreModMainCfg.php
+++ b/share/server/core/classes/CoreModMainCfg.php
@@ -145,7 +145,8 @@ class CoreModMainCfg extends CoreModule {
     protected function doEdit($a) {
         foreach($a['opts'] AS $key => $val) {
             $key = explode('_', $key, 2);
-            $this->CORE->getMainCfg()->setValue($key[0], $key[1], $val);
+            if(sizeof($key) == 2) 
+                $this->CORE->getMainCfg()->setValue($key[0], $key[1], $val);
         }
 
         // Write the changes to the main configuration file


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to