diff options
author | flop25 <flop25@piwigo.org> | 2014-08-17 20:01:10 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2014-08-17 20:01:10 +0000 |
commit | f1f806b8a313329536a56ebf5885bbc511c245ae (patch) | |
tree | bf1a579f969462a60dca2667e64397499da03389 /admin/cat_modify.php | |
parent | 321068447279208f127b48044ca28dac464d86ca (diff) |
feature:732
unlock sub-albums
git-svn-id: http://piwigo.org/svn/trunk@29229 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/cat_modify.php')
-rw-r--r-- | admin/cat_modify.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php index ae9ff5497..a3c34ada5 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -136,7 +136,11 @@ if (isset($_POST['submit'])) // retrieve cat infos before continuing (following updates are expensive) $cat_info = get_cat_info($_GET['cat_id']); - if ($cat_info['visible'] != get_boolean( $_POST['visible'] ) ) + if ($_POST['visible']=='true_sub') + { + set_cat_visible(array($_GET['cat_id']), true, true); + } + elseif ($cat_info['visible'] != get_boolean( $_POST['visible'] ) ) { set_cat_visible(array($_GET['cat_id']), $_POST['visible']); } |