aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_unit.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-06-01 13:50:01 +0000
committermistic100 <mistic@piwigo.org>2011-06-01 13:50:01 +0000
commit866fc70485785e6593351d98395ead1eaca2faf0 (patch)
tree241ae0d1c15d3a284a4f942a5f4c89140a2b7416 /admin/batch_manager_unit.php
parent4f614c9fef6767207dd5a236d0c2b979141bbf3e (diff)
mysql warning if tag field is empty
git-svn-id: http://piwigo.org/svn/trunk@11192 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/batch_manager_unit.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php
index b7ca074d7..84eed53b1 100644
--- a/admin/batch_manager_unit.php
+++ b/admin/batch_manager_unit.php
@@ -106,11 +106,15 @@ SELECT id, date_creation
array_push($datas, $data);
// tags management
- if (isset($_POST[ 'tags-'.$row['id'] ]))
+ if (isset($_POST[ 'tags-'.$row['id'] ]) AND $_POST[ 'tags-'.$row['id'] ] != null)
{
$tag_ids = get_tag_ids($_POST[ 'tags-'.$row['id'] ]);
- set_tags($tag_ids, $row['id']);
}
+ else
+ {
+ $tag_ids = array();
+ }
+ set_tags($tag_ids, $row['id']);
}
mass_updates(