Ignore:
Timestamp:
Jun 3, 2011, 6:42:02 PM (13 years ago)
Author:
patdenice
Message:

merge r11220 from trunk to branch 2.2
bug:2326
Mysql error on picture_modify if tag input is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/admin/batch_manager_unit.php

    r11193 r11221  
    107107
    108108    // tags management
    109     if (isset($_POST[ 'tags-'.$row['id'] ]) AND $_POST[ 'tags-'.$row['id'] ] != null)
     109    $tag_ids = array();
     110    if (!empty($_POST[ 'tags-'.$row['id'] ]))
    110111    {
    111112      $tag_ids = get_tag_ids($_POST[ 'tags-'.$row['id'] ]);
    112     }
    113     else
    114     {
    115       $tag_ids = array();
    116113    }
    117114    set_tags($tag_ids, $row['id']);
Note: See TracChangeset for help on using the changeset viewer.