Changeset 11192


Ignore:
Timestamp:
Jun 1, 2011, 3:50:01 PM (9 years ago)
Author:
mistic100
Message:

mysql warning if tag field is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_unit.php

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