1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Update TaskRepository.php

Ternary operator for $task->is_running
This commit is contained in:
David Bomba 2017-05-03 14:26:26 +10:00 committed by GitHub
parent 29969e45ff
commit 2d28bc8e63

View File

@ -147,7 +147,7 @@ class TaskRepository extends BaseRepository
$timeLog[count($timeLog) - 1][1] = time();
$task->is_running = false;
} elseif ($data['action'] == 'offline'){
$task->is_running = $data['is_running'];
$task->is_running = $data['is_running'] ? 1 : 0;
}
}