Update TaskRepository.php
Ternary operator for $task->is_running
This commit is contained in:
parent
29969e45ff
commit
2d28bc8e63
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue