[pLog-svn] r7183 - plog/branches/lifetype-1.2/class/dao

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Apr 13 15:49:02 EDT 2012


Author: jondaley
Date: 2012-04-13 15:49:02 -0400 (Fri, 13 Apr 2012)
New Revision: 7183

Modified:
   plog/branches/lifetype-1.2/class/dao/commentscommon.class.php
Log:
when getIdenticalComment was re-added in rev 6445, I had a small typo in that type isn't the variable, _type is, and as a 'private' variable, should be accessed through the method getType() call instead

Modified: plog/branches/lifetype-1.2/class/dao/commentscommon.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/commentscommon.class.php	2012-04-06 15:43:50 UTC (rev 7182)
+++ plog/branches/lifetype-1.2/class/dao/commentscommon.class.php	2012-04-13 19:49:02 UTC (rev 7183)
@@ -576,7 +576,7 @@
                 "user_name = '".Db::qstr($comment->getUserName())."' AND ".
                 "user_email = '".Db::qstr($comment->getUserEmail())."' AND ".
                 "user_url = '".Db::qstr($comment->getUserUrl())."'";
-            if( $comment->type != COMMENT_TYPE_ANY )
+            if( $comment->getType() != COMMENT_TYPE_ANY )
                 $query .= " AND type = '".Db::qstr($comment->getType())."'";
 
             $result = $this->Execute( $query );



More information about the pLog-svn mailing list