Changeset 15852


Ignore:
Timestamp:
Jun 20, 2012, 6:05:27 PM (8 years ago)
Author:
mistic100
Message:

feature 2657: previous commit may work, but badly coded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r15851 r15852  
    23082308  {
    23092309    $updates['status'] = $params['status'];
    2310    
    2311     if ('private' == $updates['status'])
    2312     {
    2313       add_permission_on_category($creation_output['id'], get_admins());
    2314     }
    23152310  }
    23162311  if ( !empty($params['visible']) and in_array($params['visible'], array('true','false')) )
     
    23342329      array('id'=>$creation_output['id'])
    23352330      );
     2331  }
     2332 
     2333  if ( isset($updates['status']) and 'private' == $updates['status'] )
     2334  {
     2335    add_permission_on_category($creation_output['id'], get_admins());
    23362336  }
    23372337
Note: See TracChangeset for help on using the changeset viewer.