From 16e787ec0ca37d1dd32984360768df5d1827cad8 Mon Sep 17 00:00:00 2001 From: Varakh Date: Thu, 5 Apr 2018 14:42:23 +0200 Subject: [PATCH] FIX args on logs --- src/Control/Actions/LogsAction.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Control/Actions/LogsAction.php b/src/Control/Actions/LogsAction.php index fbe6257..0247c9b 100644 --- a/src/Control/Actions/LogsAction.php +++ b/src/Control/Actions/LogsAction.php @@ -7,7 +7,8 @@ final class LogsAction extends AbstractAction { 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']); if (empty($sid)) {