[pLog-svn] r635 - plog/trunk/class/action
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Thu Dec 30 20:31:18 GMT 2004
Author: oscar
Date: 2004-12-30 20:31:17 +0000 (Thu, 30 Dec 2004)
New Revision: 635
Modified:
plog/trunk/class/action/addcommentaction.class.php
Log:
the first bugfix introduced a new one... The $parentId parameter wasn't being correctly initialized and the sql query was failing... Quite dumb if you ask me :P
Modified: plog/trunk/class/action/addcommentaction.class.php
===================================================================
--- plog/trunk/class/action/addcommentaction.class.php 2004-12-30 19:09:07 UTC (rev 634)
+++ plog/trunk/class/action/addcommentaction.class.php 2004-12-30 20:31:17 UTC (rev 635)
@@ -70,12 +70,13 @@
$this->_blogId = $this->_request->getValue( "blogId" );
$this->_opId = $this->_request->getValue( "op" );
$this->_parentId = $this->_request->getValue( "parentId" );
+ if( $this->_parentId == null || $this->_parentId == "" )
+ $this->_parentId = 0;
$this->_userEmail = trim($this->_request->getValue( "userEmail" ));
$this->_userUrl = trim($this->_request->getValue( "userUrl" ));
if( substr($this->_userUrl, 1, 7 ) != "http://" )
$this->_userUrl = "http://".$this->_userUrl;
$this->_userName = trim($this->_request->getValue( "userName" ));
- $this->_parentId = $this->_request->getValue( "parentId" );
$this->_commentText = trim($this->_request->getValue( "commentText" ));
$this->_commentTopic = trim($this->_request->getValue( "commentTopic" ));
// remove all straneous stuff from the text and topic
More information about the pLog-svn
mailing list