Skip to content

Commit

Permalink
avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Feb 18, 2008
1 parent 6cfea60 commit 2c15119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/App/Addex/Plugin/Hiveminder.pm
Expand Up @@ -23,8 +23,8 @@ sub import {

return @emails if grep { $_->label eq $arg{todo_label} } @emails;

my $todo_label = $self->field('todos_to');
my ($email) = grep { $_->label eq $todo_label } @emails;
my $todos_to = $self->field('todos_to');
my ($email) = $todos_to ? (grep { $_->label eq $todos_to } @emails) : ();
$email ||= $emails[0];

push @emails, App::Addex::Entry::EmailAddress->new({
Expand Down

0 comments on commit 2c15119

Please sign in to comment.