aboutsummaryrefslogtreecommitdiffstats
path: root/admin/picture_modify.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/picture_modify.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index acc7c010c..6dd218f80 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -171,6 +171,10 @@ if (isset($_POST['submit']) and count($page['errors']) == 0)
set_tags($tag_ids, $_GET['image_id']);
// association to albums
+ if (!isset($_POST['associate']))
+ {
+ $_POST['associate'] = array();
+ }
move_images_to_categories(array($_GET['image_id']), $_POST['associate']);
// thumbnail for albums