aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_unit.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-06-03 16:40:25 +0000
committerpatdenice <patdenice@piwigo.org>2011-06-03 16:40:25 +0000
commit0af1d99ebf47e2028aef143d44b9f428e1a5df19 (patch)
tree8ec518935526f235ab38b7e7608ef45cdd821c70 /admin/batch_manager_unit.php
parent9866699c7786c27f65aff681388aeb5deac05e87 (diff)
bug:2326
Mysql error on picture_modify if tag input is empty. git-svn-id: http://piwigo.org/svn/trunk@11220 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_unit.php')
-rw-r--r--admin/batch_manager_unit.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php
index 84eed53b1..a009a6843 100644
--- a/admin/batch_manager_unit.php
+++ b/admin/batch_manager_unit.php
@@ -106,14 +106,11 @@ SELECT id, date_creation
array_push($datas, $data);
// tags management
- if (isset($_POST[ 'tags-'.$row['id'] ]) AND $_POST[ 'tags-'.$row['id'] ] != null)
+ $tag_ids = array();
+ if (!empty($_POST[ 'tags-'.$row['id'] ]))
{
$tag_ids = get_tag_ids($_POST[ 'tags-'.$row['id'] ]);
}
- else
- {
- $tag_ids = array();
- }
set_tags($tag_ids, $row['id']);
}