#161979 noticed by bboyjay, patch by myself: kill noticedisplayed when no comments were selected for the mass operation

6.x
Gábor Hojtsy 2007-07-25 14:57:58 +00:00
parent 61b225ee8b
commit f180790bb7
1 changed files with 1 additions and 1 deletions

View File

@ -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 {