From f180790bb7f5c961245a788d7f19d0489b1ed04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 25 Jul 2007 14:57:58 +0000 Subject: [PATCH] #161979 noticed by bboyjay, patch by myself: kill noticedisplayed when no comments were selected for the mass operation --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 7220b3d9080..53b28e01299 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1167,7 +1167,7 @@ function comment_operations($action = NULL) { function comment_admin($type = 'new') { $edit = $_POST; - if (isset($edit['operation']) && ($edit['operation'] == 'delete') && $edit['comments']) { + if (isset($edit['operation']) && ($edit['operation'] == 'delete') && isset($edit['comments']) && $edit['comments']) { return drupal_get_form('comment_multiple_delete_confirm'); } else {