Skip to content

Commit

Permalink
Update MessageService.php (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
musonza authored Nov 25, 2019
1 parent f32cd7f commit 11793e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/MessageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function send()
throw new Exception('Message sender has not been set');
}

if (!$this->body) {
if (strlen($this->body) == 0) {
throw new Exception('Message body has not been set');
}

Expand Down

0 comments on commit 11793e2

Please sign in to comment.