Skip to content

Commit

Permalink
Update scheduled task email subject when description is defined (#16790)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmaguire authored and taylorotwell committed Dec 14, 2016
1 parent 2ee552d commit 454c8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ protected function emailOutput(Mailer $mailer, $addresses, $onlyIfOutputExists =
protected function getEmailSubject()
{
if ($this->description) {
return 'Scheduled Job Output ('.$this->description.')';
return $this->description;
}

return 'Scheduled Job Output';
Expand Down

0 comments on commit 454c8e2

Please sign in to comment.