bug 888 fixed: pwg.images.add updates the associated categories so that a

category doesn't remain without representant while containing photos.


git-svn-id: http://piwigo.org/svn/trunk@2672 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2008-10-05 22:30:35 +00:00
parent 516b8f1134
commit a7f507dc68
+3 -1
View File
@@ -1120,7 +1120,7 @@ SELECT
{
if ('auto' == $rank_on_category[$cat_id])
{
$rank_on_category[$cat_id] = $current_rank_of[$cat_id] + 1;
$rank_on_category[$cat_id] = $current_rank_of[$cat_id] + 1;
}
}
}
@@ -1144,6 +1144,8 @@ SELECT
array_keys($inserts[0]),
$inserts
);
update_category($cat_ids);
}
}