diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-05 15:30:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-05 15:30:30 +0000 |
commit | eabc4bd2d37567532d4adba56054f3a0cce39462 (patch) | |
tree | 53735ec4d1ddc2c970d3cff10c74d19301ed97f0 /modules/comment/comment.module | |
parent | 6ccd09dc15c1c7c2af005948e51c650ca5791839 (diff) | |
download | brdo-eabc4bd2d37567532d4adba56054f3a0cce39462.tar.gz brdo-eabc4bd2d37567532d4adba56054f3a0cce39462.tar.bz2 |
- Patch #673974 by sun: Fixed PHP notice when mass-unpublishing or deleting comments, and wrong form validation redirect.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 14 |
1 files changed, 7 insertions, 7 deletions
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'), ''), ); } |