Archived
1
0
Fork 0

FIX args on logs

This commit is contained in:
Varakh 2018-04-05 14:42:23 +02:00
parent 2489e2c209
commit 16e787ec0c

View file

@ -7,7 +7,8 @@ final class LogsAction extends AbstractAction
{ {
public function __invoke(Request $request, Response $response, $args) public function __invoke(Request $request, Response $response, $args)
{ {
$sid = $args['sid']; $sid = null;
if (array_key_exists('sid', $args)) $sid = $args['sid'];
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']); $this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
if (empty($sid)) { if (empty($sid)) {