summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Bello <tylerbello@users.sourceforge.net>2009-08-25 21:28:46 +0000
committerTyler Bello <tylerbello@users.sourceforge.net>2009-08-25 21:28:46 +0000
commitbeeff383c102d2e5207bfe43b2586ba5bfb860d7 (patch)
tree79506465622277d8784ec484e7e883da4a23c046
parent57d4fc2293be58c6b70f71b4b87286a04d5c79a9 (diff)
downloadliberty-beeff383c102d2e5207bfe43b2586ba5bfb860d7.tar.gz
liberty-beeff383c102d2e5207bfe43b2586ba5bfb860d7.tar.bz2
liberty-beeff383c102d2e5207bfe43b2586ba5bfb860d7.zip
move transaction completion outside of if check
-rw-r--r--LibertyComment.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/LibertyComment.php b/LibertyComment.php
index 21801d6..5d0c171 100644
--- a/LibertyComment.php
+++ b/LibertyComment.php
@@ -3,7 +3,7 @@
* Management of Liberty Content
*
* @package liberty
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.86 2009/07/15 16:16:20 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.87 2009/08/25 21:28:46 tylerbello Exp $
* @author spider <spider@steelsun.com>
*/
@@ -16,11 +16,11 @@ require_once( LIBERTY_PKG_PATH.'LibertyMime.php');
define( 'BITCOMMENT_CONTENT_TYPE_GUID', 'bitcomment' );
/**
- * Virtual base class (as much as one can have such things in PHP) for all
- * derived tikiwiki classes that require database access.
+ * Handles all comments which are actual content objects
*
- * @package kernel
+ * @package liberty
*/
+
class LibertyComment extends LibertyMime {
var $mCommentId;
@@ -194,9 +194,9 @@ class LibertyComment extends LibertyMime {
}
$this->invokeServices( 'comment_store_function', $pParamHash );
- $this->mDb->CompleteTrans();
}
+ $this->mDb->CompleteTrans();
return (count($this->mErrors) == 0);
}