Skip to content

Commit

Permalink
Fix PHP Warning: Undefined array key "sharedUrl" (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmuit authored Jun 11, 2024
1 parent 92f3283 commit b287517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/DiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function getDiffs(int $projectId, $page = 0)
'state' => Diff::getStateName($diff['state']),
'jobs' => $diff['status']['jobs'],
'estimate' => ($diff['status']['jobs'] > 0) ? $diff['status']['estimate'] : 'Finished',
'sharedUrl' => $diff['sharedUrl'],
'sharedUrl' => $diff['sharedUrl'] ?? NULL,
];
}
}
Expand Down

0 comments on commit b287517

Please sign in to comment.