diff options
| author | wjames5 <will@tekimaki.com> | 2009-06-18 03:48:33 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2009-06-18 03:48:33 +0000 |
| commit | dea4445cd129007056b360fed7fa0608fa0d7c98 (patch) | |
| tree | 2b09efe5cd03b5b61d853fe079245c05b5dac37f | |
| parent | 1c64ab32e066d826128f47891223a9f1e35b9982 (diff) | |
| download | liberty-dea4445cd129007056b360fed7fa0608fa0d7c98.tar.gz liberty-dea4445cd129007056b360fed7fa0608fa0d7c98.tar.bz2 liberty-dea4445cd129007056b360fed7fa0608fa0d7c98.zip | |
on expunge make sure we're loaded up
| -rw-r--r-- | comments_inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/comments_inc.php b/comments_inc.php index 5f741ed..fdbf89b 100644 --- a/comments_inc.php +++ b/comments_inc.php @@ -3,12 +3,12 @@ * comment_inc * * @author spider <spider@steelsun.com> - * @version $Revision: 1.60 $ + * @version $Revision: 1.61 $ * @package liberty * @subpackage functions */ -// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.60 2009/03/17 20:23:21 wjames5 Exp $ +// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.61 2009/06/18 03:48:33 wjames5 Exp $ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. @@ -57,6 +57,8 @@ if( $gBitSystem->isFeatureActive( 'comments_ajax' ) && !empty( $gContent ) && is if( @BitBase::verifyId( $_REQUEST['delete_comment_id'] )) { $deleteComment = new LibertyComment($_REQUEST['delete_comment_id']); + // make sure we're loaded up before we delete + $deleteComment->loadComment(); if( $deleteComment->isValid() && $gContent->hasUserPermission( 'p_liberty_admin_comments' )) { $deleteComment->deleteComment(); } |
