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

Commit

Permalink
Fixing the create session bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSH committed Jan 31, 2019
1 parent 2df3857 commit 0c8a63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PaladinsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private function getSession()
if (isset($this->cache)) {
$cacheId = 'paladinsdev.php-api.sessionId';

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

0 comments on commit 0c8a63c

Please sign in to comment.