Skip to content

Commit

Permalink
Update src/OpencastApi/Rest/OcRestClient.php
Browse files Browse the repository at this point in the history
Co-authored-by: reiferschris <34450887+reiferschris@users.noreply.github.com>
  • Loading branch information
ferishili and reiferschris committed Jun 12, 2024
1 parent 0560152 commit 7725ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpencastApi/Rest/OcRestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function hasVersion($version)
{
if (empty($this->version)) {
try {
// We have to use and aux object, in order to prevent overwriting arguments of current object.
// We have to use an aux object, in order to prevent overwriting arguments of current object.
$aux = clone $this;
$defaultVersion = $aux->performGet('/api/version/default');
if (!empty($defaultVersion['body']) && isset($defaultVersion['body']->default)) {
Expand Down

0 comments on commit 7725ab5

Please sign in to comment.