From eabc4bd2d37567532d4adba56054f3a0cce39462 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 5 Jan 2010 15:30:30 +0000 Subject: - Patch #673974 by sun: Fixed PHP notice when mass-unpublishing or deleting comments, and wrong form validation redirect. --- modules/comment/comment.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index afcd985d8..444ed9d80 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1467,21 +1467,21 @@ function comment_delete_multiple($cids) { function comment_operations($action = NULL) { if ($action == 'publish') { $operations = array( - 'publish' => array(t('Publish the selected comments'), db_update('comment')->fields(array( 'status' => COMMENT_PUBLISHED)) ), - 'delete' => array(t('Delete the selected comments'), '') + 'publish' => array(t('Publish the selected comments'), db_update('comment')->fields(array('status' => COMMENT_PUBLISHED))), + 'delete' => array(t('Delete the selected comments'), ''), ); } elseif ($action == 'unpublish') { $operations = array( - 'unpublish' => array(t('Unpublish the selected comments'), db_update('comment')->fields(array( 'status' => COMMENT_NOT_PUBLISHED)) ), - 'delete' => array(t('Delete the selected comments'), '') + 'unpublish' => array(t('Unpublish the selected comments'), db_update('comment')->fields(array('status' => COMMENT_NOT_PUBLISHED))), + 'delete' => array(t('Delete the selected comments'), ''), ); } else { $operations = array( - 'publish' => array(t('Publish the selected comments'), db_update('comment')->fields(array( 'status' => COMMENT_PUBLISHED)) ), - 'unpublish' => array(t('Unpublish the selected comments'), db_update('comment')->fields(array( 'status' => COMMENT_NOT_PUBLISHED)) ), - 'delete' => array(t('Delete the selected comments'), '') + 'publish' => array(t('Publish the selected comments'), db_update('comment')->fields(array('status' => COMMENT_PUBLISHED))), + 'unpublish' => array(t('Unpublish the selected comments'), db_update('comment')->fields(array('status' => COMMENT_NOT_PUBLISHED))), + 'delete' => array(t('Delete the selected comments'), ''), ); } -- cgit v1.2.3