mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
feature:732
unlock sub-albums git-svn-id: http://piwigo.org/svn/trunk@29229 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
3210684472
commit
f1f806b8a3
3 files changed
+13
-5
No files matched your search
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user