diff options
| author | Christian Fowler <spider@viovio.com> | 2006-09-06 09:02:47 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-09-06 09:02:47 +0000 |
| commit | 6c6cab7c9246341369f0806b30627b328a719ae4 (patch) | |
| tree | 99f75193e1aff59f94636dedac4a2a5de37d4cd3 /comments_inc.php | |
| parent | 04e495a0ec259ff11b5b0615bc318ef23b8893b8 (diff) | |
| download | liberty-6c6cab7c9246341369f0806b30627b328a719ae4.tar.gz liberty-6c6cab7c9246341369f0806b30627b328a719ae4.tar.bz2 liberty-6c6cab7c9246341369f0806b30627b328a719ae4.zip | |
initialize return value in case nothing comes back
Diffstat (limited to 'comments_inc.php')
| -rw-r--r-- | comments_inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/comments_inc.php b/comments_inc.php index dd5c5d3..8f0b334 100644 --- a/comments_inc.php +++ b/comments_inc.php @@ -3,12 +3,12 @@ * comment_inc * * @author spider <spider@steelsun.com> - * @version $Revision: 1.24 $ + * @version $Revision: 1.25 $ * @package liberty * @subpackage functions */ -// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.24 2006/08/21 11:11:20 hash9 Exp $ +// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.25 2006/09/06 09:02:47 spiderr 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. @@ -46,9 +46,9 @@ $postComment = array(); $formfeedback = array(); $gBitSmarty->assign_by_ref('formfeedback', $formfeedback); -if( @BitBase::verifyId($_REQUEST['delete_comment_id']) && $gBitUser->hasPermission( 'p_liberty_post_comments' )) { +if( @BitBase::verifyId($_REQUEST['delete_comment_id']) ) { $deleteComment = new LibertyComment($_REQUEST['delete_comment_id']); - if( @BitBase::verifyId($deleteComment->mInfo['content_id'] ) ) { + if( $deleteComment->isValid() && $gBitUser->hasPermission('p_liberty_admin_comments') ) { $deleteComment->deleteComment(); } } |
