From 2d28bc8e63351ea8aeb53a4e0f74ec433bcde403 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 3 May 2017 14:26:26 +1000 Subject: [PATCH] Update TaskRepository.php Ternary operator for $task->is_running --- app/Ninja/Repositories/TaskRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Repositories/TaskRepository.php b/app/Ninja/Repositories/TaskRepository.php index 0119662952..5457548869 100644 --- a/app/Ninja/Repositories/TaskRepository.php +++ b/app/Ninja/Repositories/TaskRepository.php @@ -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; } }