Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 0c8a63c

Browse files
committed
Fixing the create session bug
1 parent 2df3857 commit 0c8a63c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PaladinsAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private function getSession()
367367
if (isset($this->cache)) {
368368
$cacheId = 'paladinsdev.php-api.sessionId';
369369

370-
if ($this->cache->contains($cacheId) || $this->cache->fetch($cacheId) == null) {
370+
if (!$this->cache->contains($cacheId) || $this->cache->fetch($cacheId) == null) {
371371
try {
372372
$response = $this->guzzleClient->get("{$this->apiUrl}/createsessionJson/{$this->devId}/{$this->getSignature('createsession')}/{$this->getTimestamp()}");
373373
$body = json_decode($response->getBody(), true);

0 commit comments

Comments
 (0)