Changeset 11193


Ignore:
Timestamp:
06/01/11 15:51:04 (8 years ago)
Author:
mistic100
Message:

merge r11192 from trunk : mysql warning if tag field is empty

File:
1 edited

Legend:

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

    r11056 r11193  
    107107 
    108108    // tags management 
    109     if (isset($_POST[ 'tags-'.$row['id'] ])) 
     109    if (isset($_POST[ 'tags-'.$row['id'] ]) AND $_POST[ 'tags-'.$row['id'] ] != null) 
    110110    { 
    111111      $tag_ids = get_tag_ids($_POST[ 'tags-'.$row['id'] ]); 
    112       set_tags($tag_ids, $row['id']); 
    113     } 
     112    } 
     113    else 
     114    { 
     115      $tag_ids = array(); 
     116    } 
     117    set_tags($tag_ids, $row['id']); 
    114118  } 
    115119 
Note: See TracChangeset for help on using the changeset viewer.