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:
parent
29969e45ff
commit
2d28bc8e63
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user