summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-05 15:30:30 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-05 15:30:30 +0000
commiteabc4bd2d37567532d4adba56054f3a0cce39462 (patch)
tree53735ec4d1ddc2c970d3cff10c74d19301ed97f0 /modules/comment/comment.admin.inc
parent6ccd09dc15c1c7c2af005948e51c650ca5791839 (diff)
downloadbrdo-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.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index 59a9717f8..9c773dec5 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -134,7 +134,6 @@ function comment_admin_overview_validate($form, &$form_state) {
// We can't execute any 'Update options' if no comments were selected.
if (count($form_state['values']['comments']) == 0) {
form_set_error('', t('Please select one or more comments to perform the update on.'));
- drupal_goto('admin/content/comment');
}
}
@@ -146,7 +145,7 @@ function comment_admin_overview_validate($form, &$form_state) {
*/
function comment_admin_overview_submit($form, &$form_state) {
$operations = comment_operations();
- if ($operations[$form_state['values']['operation']][1]) {
+ if (!empty($operations[$form_state['values']['operation']][1])) {
// Extract the appropriate database query operation.
$query = $operations[$form_state['values']['operation']][1];
foreach ($form_state['values']['comments'] as $cid => $value) {