Skip to content

Commit

Permalink
Email plugin: use "default_mailto_address" as a fallback only.
Browse files Browse the repository at this point in the history
Closes #730
  • Loading branch information
Adirelle authored and Dan Cryer committed Feb 23, 2015
1 parent ea3109b commit 4905679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PHPCI/Plugin/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ protected function getEmailAddresses()
}
}

if (isset($this->options['default_mailto_address'])) {
if (empty($addresses) && isset($this->options['default_mailto_address'])) {
$addresses[] = $this->options['default_mailto_address'];
return $addresses;
}

return array_unique($addresses);
}

Expand Down

0 comments on commit 4905679

Please sign in to comment.