aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/user_perm.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/user_perm.php b/admin/user_perm.php
index 478d0386d..463c768c0 100644
--- a/admin/user_perm.php
+++ b/admin/user_perm.php
@@ -64,7 +64,9 @@ DELETE FROM '.USER_ACCESS_TABLE.'
;';
pwg_query($query);
}
-else if (isset($_POST['trueify']))
+elseif (isset($_POST['trueify'])
+ and isset($_POST['cat_false'])
+ and count($_POST['cat_false']) > 0)
{
add_permission_on_category($_POST['cat_false'], $page['user']);
}