Skip to content

Commit

Permalink
fix past timer retrieval when project has been archived
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Aug 14, 2020
1 parent 076a7bd commit 0c34e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Toggl.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ protected function buildPastTimerObject($togglTimer, $projects)

if (isset($togglTimer->pid)) {
$pastTimer['project_id'] = $togglTimer->pid;
$pastTimer['project_name'] = $projects[$togglTimer->pid];
$pastTimer['project_name'] = $projects[$togglTimer->pid] ?? $togglTimer->pid;
}

if (isset($togglTimer->tags)) {
Expand Down

0 comments on commit 0c34e00

Please sign in to comment.