aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-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'] );
}