Skip to content

Commit

Permalink
fix(notifications): ignore alliance from dataset if allianceID is null (
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof authored Aug 11, 2019
1 parent 967614d commit bb05056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Notifications/StructureUnderAttack.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function toSlack($notifiable)
})
->field(function ($field) {

if (! array_key_exists('allianceID', $this->content))
if (! array_key_exists('allianceID', $this->content) || is_null($this->content['allianceID']))
return;

$field->title('Alliance')
Expand Down

0 comments on commit bb05056

Please sign in to comment.