[geeklog-cvs] geeklog: Don't set the default value into the config array when ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 17 14:20:18 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/664a7d73ef34
changeset: 7037:664a7d73ef34
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun May 17 19:41:42 2009 +0200
description:
Don't set the default value into the config array when $set == false

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
system/classes/config.class.php |    4 +++-

diffs (14 lines):

diff -r 3820f9fa0da8 -r 664a7d73ef34 system/classes/config.class.php
--- a/system/classes/config.class.php	Sun May 17 19:01:40 2009 +0200
+++ b/system/classes/config.class.php	Sun May 17 19:41:42 2009 +0200
@@ -299,7 +299,9 @@
 
         $this->_DB_escapedQuery($sql);
 
-        $this->config_array[$group][$param_name] = $default_value;
+        if ($set) {
+            $this->config_array[$group][$param_name] = $default_value;
+        }
     }
 
     /**



More information about the geeklog-cvs mailing list