diff options
Diffstat (limited to '')
-rw-r--r-- | admin/cat_perm.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/admin/cat_perm.php b/admin/cat_perm.php index d8f3694e7..fa24e21be 100644 --- a/admin/cat_perm.php +++ b/admin/cat_perm.php @@ -99,8 +99,16 @@ DELETE $cat_ids = array_merge($cat_ids, get_subcat_ids(array($page['cat']))); } + $query = ' +SELECT id + FROM '.CATEGORIES_TABLE.' + WHERE id IN ('.implode(',', $cat_ids).') + AND status = \'private\' +;'; + $private_cats = array_from_query($query, 'id'); + $inserts = array(); - foreach ($cat_ids as $cat_id) + foreach ($private_cats as $cat_id) { foreach ($grant_groups as $group_id) { |