diff --git a/src/NextcloudApiContext.php b/src/NextcloudApiContext.php index 9c8fea9..f018f81 100644 --- a/src/NextcloudApiContext.php +++ b/src/NextcloudApiContext.php @@ -175,7 +175,7 @@ public function sendRequest(string $verb, string $url, $body = null, array $head } $fullUrl = $this->baseUrl . $url; $client = new Client(); - if (!empty($this->currentUser)) { + if (!is_null($this->currentUser)) { $options = array_merge( ['cookies' => $this->getUserCookieJar($this->currentUser)], $options