diff --git a/C4/Letters.pm b/C4/Letters.pm index 514cb14e5f..ae80161898 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1058,15 +1058,13 @@ sub SendQueuedMessages { } ); - if (@plugins) { - foreach my $plugin (@plugins) { - try { - $plugin->before_send_messages($params); - } catch { - warn "$_"; - exit 1 if $params->{exit_on_plugin_failure}; - }; - } + foreach my $plugin (@plugins) { + try { + $plugin->before_send_messages($params); + } catch { + warn "$_"; + exit 1 if $params->{exit_on_plugin_failure}; + }; } }