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

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Mar 5 10:36:09 EST 2007


Author: mark
Date: 2007-03-05 10:36:09 -0500 (Mon, 05 Mar 2007)
New Revision: 4993

Modified:
   plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
Log:
We need to set the user_id to 0 in add_comment to fulfill Mysql 5 strict mode.

Modified: plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/addcommentaction.class.php	2007-03-05 10:36:01 UTC (rev 4992)
+++ plog/branches/lifetype-1.2/class/action/addcommentaction.class.php	2007-03-05 15:36:09 UTC (rev 4993)
@@ -183,6 +183,8 @@
 			if( $this->_userInfo ) {
 				// ...and if so, save the user data in the UserComment object
 				$comment->setUser( $this->_userInfo );
+			} else {
+				$comment->setUserId( 0 );
 			}
 
 			// fire an event



More information about the pLog-svn mailing list