Skip to content
Snippets Groups Projects
Commit 1681d3a1 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3348651 by jurgenhaas: Client initialization is broken

parent 33d4305a
No related branches found
No related tags found
No related merge requests found
......@@ -55,9 +55,9 @@ class Api {
$this->switchServer();
}
if ($this->client === NULL) {
$client = new Client();
$client->setUrl($this->server->getUrl());
$client->authenticate($this->server->getAuthToken(), Client::AUTH_HTTP_TOKEN);
$this->client = new Client();
$this->client->setUrl($this->server->getUrl());
$this->client->authenticate($this->server->getAuthToken(), Client::AUTH_HTTP_TOKEN);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment