[geeklog-cvs] geeklog: Fixed deleting elements from Configuration arrays (bug ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Sep 25 04:18:48 EDT 2011


changeset 8422:d06d9d90f763
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/d06d9d90f763
user: Dirk Haun <dirk at haun-online.de>
date: Sun Sep 25 10:15:05 2011 +0200
description:
Fixed deleting elements from Configuration arrays (bug #0001394, patch provided by dengen)

diffstat:

 system/classes/config.class.php |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r bfae16aa3972 -r d06d9d90f763 system/classes/config.class.php
--- a/system/classes/config.class.php	Sun Sep 25 09:26:09 2011 +0200
+++ b/system/classes/config.class.php	Sun Sep 25 10:15:05 2011 +0200
@@ -1322,6 +1322,10 @@
                 } else if ( is_array($change_array[$param_name]) ) {
                     /* if array such as mail settings */
                     $_changed = false;
+                    if (count($this->config_array[$group][$param_name]) !=
+                            count($change_array[$param_name])) {
+                        $_changed = true;
+                    }
                     foreach ( $change_array[$param_name] as $_param_name => $_param_value ) {
                         if  ( $change_array[$param_name][$_param_name] != 
                               $this->config_array[$group][$param_name][$_param_name] )



More information about the geeklog-cvs mailing list