[pLog-svn] r7246 - plog/branches/lifetype-1.2/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Sep 23 13:16:47 EDT 2020
Author: jondaley
Date: 2020-09-23 13:16:47 -0400 (Wed, 23 Sep 2020)
New Revision: 7246
Modified:
plog/branches/lifetype-1.2/class/dao/usercomment.class.php
Log:
I'm having a bug where the user_id is trying to be written to the database as null, rather than 0. I can't tell if it is because a spammer is doing something bad (in which case, we need to filter better), or if there is a bug somewhere. It rarely happens, but I get occasional complaints
Modified: plog/branches/lifetype-1.2/class/dao/usercomment.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/usercomment.class.php 2020-09-23 17:15:46 UTC (rev 7245)
+++ plog/branches/lifetype-1.2/class/dao/usercomment.class.php 2020-09-23 17:16:47 UTC (rev 7246)
@@ -580,7 +580,7 @@
*/
function getUser()
{
- if( $this->_userId != 0 ) {
+ if( !$this->_userId ) {
lt_include( PLOG_CLASS_PATH."class/dao/users.class.php" );
$users = new Users();
$this->_user = $users->getUserInfoFromId( $this->_userId );
More information about the pLog-svn
mailing list