Skip to content

Commit

Permalink
Merge pull request #109 from techjoomla/release-1.0.7
Browse files Browse the repository at this point in the history
Merge `1.0.7` into `master`
  • Loading branch information
manojLondhe authored Nov 3, 2020
2 parents 689ecf7 + 7267b90 commit 66acabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/techjoomla/tjnotifications/tjnotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static function getRecipients($client,$key,$recipients,$options)
* $recipient->id is not in $unsubscribed_users array.
* $recipient->block is empty or not set.
*/
if (!empty($unsubscribed_users) && !in_array($recipient->id, $unsubscribed_users) && !($recipient->block))
if ((isset($recipient->id)) && !empty($unsubscribed_users) && !in_array($recipient->id, $unsubscribed_users) && !($recipient->block))
{
// Make an array of recipients.
$addRecipients[] = $recipient->email;
Expand Down

0 comments on commit 66acabd

Please sign in to comment.