Changeset 22301


Ignore:
Timestamp:
Apr 19, 2013, 10:18:04 PM (11 years ago)
Author:
plg
Message:

bug 2892 fixed: no more error when tag_ids input parameter is empty (but
provided) on pwg.images.setInfo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/include/ws_functions.inc.php

    r21800 r22301  
    26212621  if (isset($params['tag_ids']))
    26222622  {
    2623     $tag_ids = explode(',', $params['tag_ids']);
     2623    $tag_ids = array();
     2624
     2625    foreach (explode(',', $params['tag_ids']) as $candidate)
     2626    {
     2627      $candidate = trim($candidate);
     2628
     2629      if (preg_match(PATTERN_ID, $candidate))
     2630      {
     2631        $tag_ids[] = $candidate;
     2632      }
     2633    }
    26242634
    26252635    if ('replace' == $params['multiple_value_mode'])
Note: See TracChangeset for help on using the changeset viewer.