[pLog-svn] r6853 - plog/branches/lifetype-1.2/class/action/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Apr 11 14:18:53 EDT 2009


Author: jondaley
Date: 2009-04-11 14:18:53 -0400 (Sat, 11 Apr 2009)
New Revision: 6853

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php
Log:
and how might one mess up their config table???  fixes bug just added in 6851 where I tried to 'trim' arrays

Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php	2009-04-11 18:16:41 UTC (rev 6852)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateglobalsettingsaction.class.php	2009-04-11 18:18:53 UTC (rev 6853)
@@ -98,7 +98,7 @@
             $locales = new Locales();
             $this->_newConfigOpts["locales"] = $locales->getAvailableLocales();
             $this->_newConfigOpts["templates"] = $configOpts["templates"];
-			
+
 			// the default_blog_id setting is coming from a chooser, so it won't be automatically picked up
             $blogId = $this->_request->getValue( "blogId" );
             if($blogId)
@@ -114,7 +114,10 @@
             
         	// we can proceed to update the config
             foreach( $this->_newConfigOpts as $key => $value ) {
-            	$this->_config->setValue( $key, trim($value) );
+                if(is_array($value))
+                    $this->_config->setValue($key, $value);
+                else
+                    $this->_config->setValue($key, trim($value));
             }
             // and finally save everything
             $res = $this->_config->save();



More information about the pLog-svn mailing list