From a1002f61fd0a9671ea1dd70f0ac3385db9cf6c16 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 18 Sep 2012 11:43:36 +0000 Subject: little code refactoring over r17424 bug fixed on Edit Photo page when associating with no album. git-svn-id: http://piwigo.org/svn/trunk@17980 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/picture_modify.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'admin/picture_modify.php') 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 -- cgit v1.2.3