diff options
author | plegall <plg@piwigo.org> | 2013-05-29 20:51:03 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-05-29 20:51:03 +0000 |
commit | 0b739e406a4dfb73c86d796703bc258bcb166689 (patch) | |
tree | ef312366f67bfb49aa14e2e997af554a6dd7ad7f /admin/user_perm.php | |
parent | c3c6b70f1723a2697b2ddf656c44255835133a28 (diff) |
bug 2909 fixed: make sure the selection of private album is not empty before
adding permission to user. The good test had been removed in r11729
git-svn-id: http://piwigo.org/svn/branches/2.5@22949 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/user_perm.php | 4 |
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']); } |