Ignore:
Timestamp:
08/14/12 20:53:43 (7 years ago)
Author:
flop25
Message:

bug:2719
no need to array diff : the system check after to not reinsert existing lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_perm.php

    r13593 r17561  
    9191    // add permissions to groups 
    9292    // 
    93     $grant_groups = array_diff($_POST['groups'], $groups_granted); 
     93    $grant_groups = $_POST['groups']; 
    9494    if (count($grant_groups) > 0) 
    9595    { 
     
    9999        $cat_ids = array_merge($cat_ids, get_subcat_ids(array($page['cat']))); 
    100100      } 
    101        
     101 
    102102      $query = ' 
    103103SELECT id 
     
    114114        $granteds[$cat_id] = array(); 
    115115      } 
    116    
     116 
    117117      $query = ' 
    118118SELECT 
     
    184184    // add permissions to users 
    185185    // 
    186     $grant_users = array_diff($_POST['users'], $users_granted); 
     186    $grant_users = $_POST['users']; 
    187187    if (count($grant_users) > 0) 
    188188    { 
Note: See TracChangeset for help on using the changeset viewer.