Skip to content

Commit

Permalink
Update CamundaModel.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wertmenschen authored Sep 12, 2018
1 parent 2826bd8 commit 4dfe925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/CamundaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private function request($url, $method, $data = [])

private function buildUrl($url)
{
$modelUri = empty($this->id) || str_contains($url, '?') ? '' : $this->modelUri() . '/';
$modelUri = (empty($this->id) && empty($this->key)) || str_contains($url, '?') ? '' : $this->modelUri() . '/';
return 'engine-rest/' . $modelUri . $url;
}

Expand Down

0 comments on commit 4dfe925

Please sign in to comment.