Skip to content

Commit

Permalink
Update function.browning.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisgoddard committed Dec 21, 2014
1 parent a7f51cc commit 5aee5c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions function.browning.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ function Browning($Dear, $Subject, $Message, $Regards = false, $ReplyTo = false,
if ( curl_errno($Browning['Curl']) ) {
return curl_errno($Browning['Curl']).' Error: '.curl_error($Browning['Curl']);

} else if (
!$Browning['Response']
$Browning_Response == 'Forbidden' ||
) {
return array('Error' => 'Unable to send email. Check your configuration and keys.', 'Success' => false);
} else if ( !$Browning['Response'] ) {
return array('Error' => 'Unable to send email at this time. Please try again later.', 'Success' => false);

} else if ( $Browning['Response'] == 'Forbidden' ) {
return array('Error' => 'This website is unable to send email. <!-- Check your configuration and keys. -->', 'Success' => false);

} else {
curl_close($Browning['Curl']);
Expand Down

0 comments on commit 5aee5c0

Please sign in to comment.