Skip to content

Commit

Permalink
Update TaskEmailDue.php
Browse files Browse the repository at this point in the history
should have been date_due not due_date
  • Loading branch information
creecros authored Dec 6, 2017
1 parent 0b70bb6 commit c5104b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Action/TaskEmailDue.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public function doAction(array $data)

foreach ($data['tasks'] as $task) {
$user = $this->userModel->getById($task['owner_id']);
if (! empty($task['due_date'])) {
$duration = $task['due_date'] - time();
if (! empty($task['date_due'])) {
$duration = $task['date_due'] - time();
if ($duration < $max) {
if (! empty($user['email'])) {
$results[] = $this->sendEmail($task['id'], $user);
Expand All @@ -94,8 +94,8 @@ public function doAction(array $data)

foreach ($data['tasks'] as $task) {
$user = $this->userModel->getById($task['creator_id']);
if (! empty($task['due_date'])) {
$duration = $task['due_date'] - time();
if (! empty($task['date_due'])) {
$duration = $task['date_due'] - time();
if ($duration < $max) {
if (! empty($user['email'])) {
$results[] = $this->sendEmail($task['id'], $user);
Expand Down

0 comments on commit c5104b2

Please sign in to comment.