Author:   Lars Michelsen <[email protected]>
Date:     Sat Apr  2 11:17:04 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Apr  2 11:17:04 2011 +0200

Fixed adding of new attributes in global section

---

 share/server/core/classes/GlobalMapCfg.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/server/core/classes/GlobalMapCfg.php 
b/share/server/core/classes/GlobalMapCfg.php
index 5681631..cf383bb 100644
--- a/share/server/core/classes/GlobalMapCfg.php
+++ b/share/server/core/classes/GlobalMapCfg.php
@@ -2297,7 +2297,7 @@ class GlobalMapCfg {
                                array_splice($f, $lineNum, 1);
                        elseif($lineNum === null && $newLine !== '')
                                // if a parameter is was not found in array and 
a value is not empty, create line
-                               array_splice($f, $end, 1, Array($newLine, 
$f[$end]));
+                               array_splice($f, $end - 1, 1, Array($newLine, 
$f[$end - 1]));
                }
                
                $this->writeConfig($f);


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to