Skip to content

Commit

Permalink
dev/core#1717 Fix SMTP failure on fail to disconnect due to new wrapp…
Browse files Browse the repository at this point in the history
…er smtp mailer

Add in wrapper around to check if we can call it
  • Loading branch information
seamuslee001 committed Apr 22, 2020
1 parent 222f141 commit 21832ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Utils/Mail/FilteredPearMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,11 @@ public function __unset($name) {
unset($this->_delegate->{$name});
}

public function disconnect() {
if (is_callable([$this->_delegate, 'disconnect'])) {
return $this->_delegate->disconnect();
}
return TRUE;
}

}

0 comments on commit 21832ae

Please sign in to comment.