Changeset 11220


Ignore:
Timestamp:
06/03/11 18:40:25 (8 years ago)
Author:
patdenice
Message:

bug:2326
Mysql error on picture_modify if tag input is empty.

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_unit.php

    r11192 r11220  
    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']); 
  • trunk/admin/picture_modify.php

    r11039 r11220  
    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.