aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_modify.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-11-08 14:37:20 +0000
committerplegall <plg@piwigo.org>2011-11-08 14:37:20 +0000
commitf8a63307a71ea8b86b783e1374501738c4867a74 (patch)
tree645edf0f1f65ac8e2f21e7d14652f3c910f0f2c4 /admin/cat_modify.php
parenteff3677026e403a34569eba861b676b7a0764179 (diff)
bug 2497 fixed: never try to move a physical album
git-svn-id: http://piwigo.org/svn/branches/2.3@12590 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index 5b29a85d9..8b83fd205 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.php
@@ -82,8 +82,9 @@ if (isset($_POST['submit']))
{
$_POST['parent'] = null;
}
-
- if ($cat_info['id_uppercat'] != $_POST['parent'])
+
+ // only move virtual albums
+ if (empty($cat_info['dir']) and $cat_info['id_uppercat'] != $_POST['parent'])
{
move_categories( array($_GET['cat_id']), $_POST['parent'] );
}