Skip to content

Commit

Permalink
Fixes #11 by adding an initial $message value to blank
Browse files Browse the repository at this point in the history
  • Loading branch information
elinoretenorio committed Feb 17, 2016
1 parent 376766c commit b5d0af5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/Notifications.php
Expand Up @@ -155,8 +155,9 @@ public function sendEmailsToSubscribersMail($job_id)
$name = ($user->category_id > 0) ? $category_name : $city_name;

$subject = "A new {$name} job was posted at {$this->app_name}";

$message = '';
$message .= "<p>You subcribed to receive {$name} jobs on {$this->app_name}.</p>";

$message .= $content;
$message .= "<p>To unsubscribe, click this link to stop receiving alerts.</p>";
$message .= "<p><a href={$link}>{$link}</a></p>";
Expand Down

0 comments on commit b5d0af5

Please sign in to comment.