Changeset 11221


Ignore:
Timestamp:
06/03/11 18:42:02 (8 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.

Location:
branches/2.2/admin
Files:
2 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']); 
  • branches/2.2/admin/picture_modify.php

    r11056 r11221  
    165165  // time to deal with tags 
    166166  $tag_ids = array(); 
    167   if (isset($_POST['tags'])) 
     167  if (!empty($_POST['tags'])) 
    168168  { 
    169169    $tag_ids = get_tag_ids($_POST['tags']); 
Note: See TracChangeset for help on using the changeset viewer.