diff options
Diffstat (limited to '')
-rw-r--r-- | admin/batch_manager_unit.php | 7 |
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']); } |