Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0374f83c
authored
2014-11-05 15:34:23 -0500
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Ensure that Mandrill mail responses are checked if they are arrays
1 parent
2d6a8eb0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
com/Notifications/Notifications.php
com/Notifications/Notifications.php
View file @
0374f83
...
...
@@ -271,7 +271,8 @@ function send_triggered_notification($uid = 0, $trigger = "NO_TRIGGER", $args =
if
(
CBV\system_can_send_emails
())
{
$response
=
\wpMandrill
::
mail
(
$to_email
,
$subject
,
!
empty
(
$html
)
?
$html
:
$alttext
,
[],
$attachments
);
if
(
isset
(
$response
[
0
][
'status'
])
is_array
(
$response
)
&&
isset
(
$response
[
0
][
'status'
])
&&
isset
(
$response
[
0
][
'status'
])
&&
!
in_array
(
$response
[
'status'
],
[
'rejected'
,
'invalid'
])
)
{
...
...
Please
register
or
sign in
to post a comment