Created
August 26, 2019 18:44
-
-
Save frogstarr78/943a2dcd24fa95bfb207630a5f11f9d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62,66c62,68 | |
< $cacheObj = json_decode($cacheFile); | |
< if(isset($cacheObj->$user)){ | |
< return $cacheObj->$user; | |
< }else{ | |
< throw new Exception("User does not exist in cache_keys. Try regenerating the cache."); | |
--- | |
> if ( $cacheFile ) { | |
> $cacheObj = json_decode($cacheFile); | |
> if(isset($cacheObj->$user)){ | |
> return $cacheObj->$user; | |
> }else{ | |
> throw new Exception("User does not exist in cache_keys. Try regenerating the cache."); | |
> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment