Skip to content

Commit

Permalink
email_generic_to_recipients() for no recipients
Browse files Browse the repository at this point in the history
In case of empty recipients don’t do the work to fetch issue information.

Fixes #21876
  • Loading branch information
vboctor committed Nov 13, 2016
1 parent aab3fe9 commit b63ff25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/email_api.php
Expand Up @@ -639,6 +639,10 @@ function email_generic( $p_bug_id, $p_notify_type, $p_message_id = null, array $
* @return void
*/
function email_generic_to_recipients( $p_bug_id, $p_notify_type, array $p_recipients, $p_message_id = null, array $p_header_optional_params = null ) {
if( empty( $p_recipients ) ) {
return;
}

if( OFF == config_get( 'enable_email_notification' ) ) {
return;
}
Expand Down

0 comments on commit b63ff25

Please sign in to comment.