diff options
Diffstat (limited to '')
-rw-r--r-- | admin/batch_manager_global.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php index dfaca2cf8..24212dfa1 100644 --- a/admin/batch_manager_global.php +++ b/admin/batch_manager_global.php @@ -121,11 +121,8 @@ DELETE if ('del_tags' == $action) { - if (count($_POST['del_tags']) == 0) + if (isset($_POST['del_tags']) and count($_POST['del_tags']) > 0) { - array_push($page['errors'], l10n('Select at least one tag')); - } - $query = ' DELETE FROM '.IMAGE_TAG_TABLE.' @@ -133,6 +130,11 @@ DELETE AND tag_id IN ('.implode(',', $_POST['del_tags']).') ;'; pwg_query($query); + } + else + { + array_push($page['errors'], l10n('Select at least one tag')); + } } if ('associate' == $action) |