summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Product.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm
index 975af7d5d..46e91aa65 100644
--- a/Bugzilla/Product.pm
+++ b/Bugzilla/Product.pm
@@ -298,7 +298,9 @@ sub remove_from_db {
WHERE series_categories.name = ?',
undef, $self->name);
- $dbh->do('DELETE FROM series WHERE ' . $dbh->sql_in('series_id', $series_ids));
+ if (scalar @$series_ids) {
+ $dbh->do('DELETE FROM series WHERE ' . $dbh->sql_in('series_id', $series_ids));
+ }
# If no subcategory uses this product name, completely purge it.
my $in_use =