diff --git a/limesurvey-sme-accounts.pl b/limesurvey-sme-accounts.pl index 5192547..410a69a 100644 --- a/limesurvey-sme-accounts.pl +++ b/limesurvey-sme-accounts.pl @@ -215,7 +215,7 @@ if (defined $new_date and not $dry){ $sth->finish; print $report; -if ($ok_cnt > 0 or $ko_cnt > 1){ +if ($ok_cnt > 0 or $ko_cnt > 0){ foreach my $email (@notify){ print "Sending notification to $email\n"; open(QMAIL, "|/var/qmail/bin/qmail-inject -fdo-not-reply\@$domain $email")