Changeset 12019 for trunk/admin/cat_perm.php
- Timestamp:
- Aug 31, 2011, 5:12:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_perm.php
r12017 r12019 97 97 AND status = \'private\' 98 98 ;'; 99 $private_ uppercats = array_from_query($query, 'id');99 $private_cats = array_from_query($query, 'id'); 100 100 101 101 // We must not reinsert already existing lines in group_access table 102 102 $granteds = array(); 103 foreach ($private_ uppercats as $cat_id)103 foreach ($private_cats as $cat_id) 104 104 { 105 105 $granteds[$cat_id] = array(); … … 109 109 SELECT group_id, cat_id 110 110 FROM '.GROUP_ACCESS_TABLE.' 111 WHERE cat_id IN ('.implode(',', $private_ uppercats).')111 WHERE cat_id IN ('.implode(',', $private_cats).') 112 112 AND group_id IN ('.implode(',', $_POST['grant_groups']).') 113 113 ;'; … … 120 120 $inserts = array(); 121 121 122 foreach ($private_ uppercats as $cat_id)122 foreach ($private_cats as $cat_id) 123 123 { 124 124 $group_ids = array_diff($_POST['grant_groups'], $granteds[$cat_id]);
Note: See TracChangeset
for help on using the changeset viewer.