Skip to content

Commit

Permalink
Merge pull request #97 from Tr0nYx/master
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Tr0nYx committed Nov 4, 2016
2 parents 1330f91 + 6eb5bee commit 7559f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/AlphaTrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct($config, SessionInterface $session = null, $jwt = nu
{
$this->config = $config;
$this->jwt = $jwt ?: $config['jwt'];
if ($session->isStarted()) {
if (null !== $session->get('_attoken')) {
$this->jwt = $session->get('_attoken') ?: $jwt;
}
}
Expand Down

0 comments on commit 7559f32

Please sign in to comment.