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

Jon Daley plogworld at jon.limedaley.com
Mon Mar 5 14:19:51 EST 2007


 	Is this related to the userid problem that people sometimes have 
with resources?  Maybe there is another place where we need to call 
setUserId?

On Mon, 5 Mar 2007, mark at devel.lifetype.net wrote:

> 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
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

If it weren't for the last minute, nothing would get done.


More information about the pLog-svn mailing list