Skip to content

Commit 0b70be0

Browse files
justindhAkov
andauthored
update corp leave message to allow corp or char info if either is known (#86)
Co-authored-by: Akov <akov@deepwaterhooligans.com>
1 parent e56e4d8 commit 0b70be0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Notifications/Corporations/Mail/CharLeftCorpMsg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function toMail($notifiable)
7373

7474
$corporation = CorporationInfo::find($this->notification->text['corpID']);
7575

76-
if (! is_null($corporation) && ! is_null($character)) {
76+
if (! is_null($corporation) || ! is_null($character)) {
7777

7878
if (! is_null($corporation)) {
7979

src/Notifications/Corporations/Slack/CharLeftCorpMsg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function toSlack($notifiable)
7373

7474
$corporation = CorporationInfo::find($this->notification->text['corpID']);
7575

76-
if (! is_null($corporation) && ! is_null($character)) {
76+
if (! is_null($corporation) || ! is_null($character)) {
7777

7878
$message->attachment(function ($attachment) use ($character, $corporation) {
7979

0 commit comments

Comments
 (0)