Currently, if login fails and you try getSnaps() or any of the
other get functions, it will call getUpdates() which calls
$this->cache->get() before checking for a valid login.
As $this->cache is not populated until a valid login, this will
cause this sort of error:
Fatal error: Call to a member function get() on a non-object in /homepages/15/d419114431/htdocs/bobink/snapchat/src/snapchat.php on line 234
This change modifies the code to perform the login check before
pulling from cache, solving the fatal errors.
Currently, if login fails and you try getSnaps() or any of the other get functions, it will call getUpdates() which calls $this->cache->get() before checking for a valid login.
As $this->cache is not populated until a valid login, this will cause this sort of error:
Fatal error: Call to a member function get() on a non-object in /homepages/15/d419114431/htdocs/bobink/snapchat/src/snapchat.php on line 234
This change modifies the code to perform the login check before pulling from cache, solving the fatal errors.