[pLog-svn] r3145 - plog/trunk/class/action/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Tue Mar 28 20:19:26 GMT 2006


Author: jondaley
Date: 2006-03-28 20:19:26 +0000 (Tue, 28 Mar 2006)
New Revision: 3145

Modified:
   plog/trunk/class/action/admin/adminupdateglobalsettingsaction.class.php
Log:
don't update blogId if it wasn't specified. Maybe we need to validate this input, but we at least need to not erase the value when updating a page other than the 'general' page.

Modified: plog/trunk/class/action/admin/adminupdateglobalsettingsaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateglobalsettingsaction.class.php	2006-03-28 14:58:09 UTC (rev 3144)
+++ plog/trunk/class/action/admin/adminupdateglobalsettingsaction.class.php	2006-03-28 20:19:26 UTC (rev 3145)
@@ -44,7 +44,9 @@
             $this->_newConfigOpts["templates"] = $configOpts["templates"];
 			
 			// the default_blog_id setting is coming from a chooser, so it won't be automatically picked up
-			$this->_newConfigOpts["default_blog_id"] = $this->_request->getValue( "blogId" );
+            $blogId = $this->_request->getValue( "blogId" );
+            if($blogId)
+                $this->_newConfigOpts["default_blog_id"] = $blogId;
 
             return true;
         }



More information about the pLog-svn mailing list