Ignore:
Timestamp:
04/19/13 22:19:15 (7 years ago)
Author:
plg
Message:

merge r22301 from branch 2.5 to trunk

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
  • trunk/include/ws_functions.inc.php

    r21799 r22302  
    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.