diff options
| author | Alex Schroeder <[email protected]> | 2018-06-22 13:00:51 +0200 |
|---|---|---|
| committer | Alex Schroeder <[email protected]> | 2018-06-22 13:00:51 +0200 |
| commit | 6345f0e79e8888c3dc8c3b40fe4607744eacc779 (patch) | |
| tree | 16243fce6738bf99940bec94684a608ff8df9b92 | |
| parent | 375c8481a9f438cd19d33719f7d5a35dfadbb1b5 (diff) | |
| download | oddmuse-master.tar.gz | |
rc2mail: update timestamp in any caseHEADold-mastermaster
| -rw-r--r-- | scripts/rc2mail.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/rc2mail.pl b/scripts/rc2mail.pl index 055f8eee..5c4a7dcb 100644 --- a/scripts/rc2mail.pl +++ b/scripts/rc2mail.pl @@ -206,10 +206,12 @@ sub send_mail { sub main { my $rss = get_rss(); - return unless @{$rss->{items}}; - my $subscribers = get_subscribers(); - return unless %{$subscribers}; - send_files($rss, $subscribers); + if (@{$rss->{items}}) { + my $subscribers = get_subscribers(); + if (%{$subscribers}) { + send_files($rss, $subscribers); + } + } update_timestamp(); } |
