aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddtddt <ddtddt@piwigo.org>2013-09-18 21:20:30 +0000
committerddtddt <ddtddt@piwigo.org>2013-09-18 21:20:30 +0000
commitfe8e2c9a06747cc23438f78899eae3d7bb678a75 (patch)
tree610a0abc1b6439082cf3331537c772ff54297c09
parentd2149bcccf9b42fd76df6df930f71149aa55780c (diff)
[trunk] - feature:2961 Thanks to msakik for report
git-svn-id: http://piwigo.org/svn/trunk@24525 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/batch_manager_global.php10
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)