Skip to content

Commit 221e316

Browse files
committed
Fixed constructor to correctly cache when an auth token is passed (JorgenPhi#32)
1 parent 1fa1efd commit 221e316

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/snapchat.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function __construct($username = NULL, $password = NULL, $auth_token = NU
7373
}
7474
elseif (!empty($auth_token)) {
7575
$this->auth_token = $auth_token;
76+
$this->cache = new SnapchatCache();
7677
$this->username = $username;
7778
}
7879
}

0 commit comments

Comments
 (0)