diff options
-rw-r--r-- | extensions/BugModal/lib/ActivityStream.pm | 2 | ||||
-rw-r--r-- | extensions/InlineHistory/Extension.pm | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/extensions/BugModal/lib/ActivityStream.pm b/extensions/BugModal/lib/ActivityStream.pm index 82be3ff53..b25bff861 100644 --- a/extensions/BugModal/lib/ActivityStream.pm +++ b/extensions/BugModal/lib/ActivityStream.pm @@ -245,11 +245,13 @@ sub _add_activities_to_stream { my %flags; foreach my $added (@added) { my ($value, $name) = $added =~ /^((.+).)$/; + next unless defined $name; $flags{$name}{added} = $value; $flags{$name}{removed} |= ''; } foreach my $removed (@removed) { my ($value, $name) = $removed =~ /^((.+).)$/; + next unless defined $name; $flags{$name}{added} |= ''; $flags{$name}{removed} = $value; } diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm index c48405eb9..86536719f 100644 --- a/extensions/InlineHistory/Extension.pm +++ b/extensions/InlineHistory/Extension.pm @@ -155,11 +155,13 @@ sub template_before_process { my %flags; foreach my $added (@added) { my ($value, $name) = $added =~ /^((.+).)$/; + next unless defined $name; $flags{$name}{added} = $value; $flags{$name}{removed} |= ''; } foreach my $removed (@removed) { my ($value, $name) = $removed =~ /^((.+).)$/; + next unless defined $name; $flags{$name}{added} |= ''; $flags{$name}{removed} = $value; } |