aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_perm.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/cat_perm.php')
-rw-r--r--admin/cat_perm.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/cat_perm.php b/admin/cat_perm.php
index c6e26462a..f2dbb3b4a 100644
--- a/admin/cat_perm.php
+++ b/admin/cat_perm.php
@@ -148,7 +148,9 @@ DELETE
;';
pwg_query($query);
}
-else if (isset($_POST['grant_users_submit']))
+else if (isset($_POST['grant_users_submit'])
+ and isset($_POST['grant_users'])
+ and count($_POST['grant_users']) > 0)
{
add_permission_on_category($page['cat'], $_POST['grant_users']);
}