merge r17980 from trunk to branch 2.4

little code refactoring over r17424

bug fixed on Edit Photo page when associating with no album.



git-svn-id: http://piwigo.org/svn/branches/2.4@17982 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2012-09-18 11:46:56 +00:00
parent 081566eb83
commit b43df041d4
2 changed files with 14 additions and 1 deletions
+4
View File
@@ -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