diff options
author | flop25 <flop25@piwigo.org> | 2012-01-02 16:41:18 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2012-01-02 16:41:18 +0000 |
commit | 05663d3bee70006afd90d16e256dc405e6e8c311 (patch) | |
tree | e21c5cc2b983e4e143479dcce48a03d8833eef7e /admin/cat_perm.php | |
parent | 43968c37f4810567addce77eb4e77e69ff136798 (diff) |
merge r12825 from trunk to branch 2.3 bug:2546 fixed:
checkbox "apply on sub" after the button
better "if isset" to avoid errors if no user have been selected
git-svn-id: http://piwigo.org/svn/branches/2.3@12826 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/cat_perm.php | 4 |
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']); } |