We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aabfebe commit c8eafa8Copy full SHA for c8eafa8
src/Illuminate/Console/Scheduling/Event.php
@@ -405,7 +405,7 @@ protected function ensureOutputIsBeingCapturedForEmail()
405
*/
406
protected function emailOutput(Mailer $mailer, $addresses, $onlyIfOutputExists = false)
407
{
408
- $text = file_get_contents($this->output);
+ $text = file_exists($this->output) ? file_get_contents($this->output) : '';
409
410
if ($onlyIfOutputExists && empty($text)) {
411
return;
0 commit comments