diff options
author | mistic100 <mistic@piwigo.org> | 2011-06-01 13:51:04 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-06-01 13:51:04 +0000 |
commit | ebf7d12a4cf5a7c8bb690a17f23f629046903a53 (patch) | |
tree | f960fbf4e918faecbb57f3800492abc3520d08d4 /admin | |
parent | 251b468b7974bc21fd240b2b21e04518070985dd (diff) |
merge r11192 from trunk : mysql warning if tag field is empty
git-svn-id: http://piwigo.org/svn/branches/2.2@11193 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/batch_manager_unit.php | 8 |
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( |