Skip to content

Commit

Permalink
Fix undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
lianguan committed Apr 9, 2018
1 parent 105bcc9 commit 65b53f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/TaskModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function getProgress(array $task, array $columns)
return 100;
}

return $task['progress'] ?: 0;
return isset($task['progress']) && $task['progress'] ?: 0;
}

/**
Expand Down

0 comments on commit 65b53f2

Please sign in to comment.