aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-10-05 22:30:35 +0000
committerplegall <plg@piwigo.org>2008-10-05 22:30:35 +0000
commita7f507dc68c851b1ff6e7820618546fdf9990756 (patch)
tree971ce6a0ddd0a436cbb1b220e9f24d6d59312241 /include
parent516b8f1134ce63a85c416674a7058ee0a8983c1d (diff)
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
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index c2e8c1778..57a12ac3b 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -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);
}
}