From 8bf37e96e8c868a419cd5ae91e94606b6434f283 Mon Sep 17 00:00:00 2001 From: Clyde Cox Date: Wed, 27 Jun 2018 18:59:31 -0400 Subject: [PATCH] -Fix spelling in cache key name --- src/Vtiger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Vtiger.php b/src/Vtiger.php index 67416c1..8a7c45a 100644 --- a/src/Vtiger.php +++ b/src/Vtiger.php @@ -59,7 +59,7 @@ public function __construct() 2 => new VtigerErrorElement('Success property not set on VTiger response', 2), 3 => new VtigerErrorElement('Error property not set on VTiger response when success is false', 3), 4 => new VtigerErrorElement('There are no search fields in the array', 4), - 5 => new VtigerErrorElement('Could not complete login request within ' . $this->maxRetries . ' tries', 5), + 5 => new VtigerErrorElement('Could not complete login request within ' . $this->maxRetries . ' tries', 5), 6 => new VtigerErrorElement( 'Could not complete get token request within ' . $this->maxRetries . ' tries', 6 @@ -191,7 +191,7 @@ protected function login($sessionData) if (Cache::has('clystnet_vtiger')) { $json = json_decode(Cache::pull('clystnet_vtiger')); $json->sessionid = $sessionId; - Cache::forever('clystnetVtiger', json_encode($json)); + Cache::forever('clystnet_vtiger', json_encode($json)); } else { throw VtigerError::init($this->vTigerErrors, 8, 'There is no key for index clystnet_vtiger.'); }