Skip to content

Commit

Permalink
Fixed updating session's old input
Browse files Browse the repository at this point in the history
  • Loading branch information
koelle25 committed Jun 15, 2017
1 parent 394b43b commit 4a8626a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Middleware/OldInputMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function __invoke(Request $request, Response $response, callable $next)
} else {
$requestParams = $request->getParams();
foreach ($requestParams as $key => $value) {
if (isset($_SESSION['old'][$key]) || $_SESSION['old'][$key] !== $value) {
if (!isset($_SESSION['old'][$key]) || $_SESSION['old'][$key] !== $value) {
$_SESSION['old'][$key] = $value;
}
}
Expand Down

0 comments on commit 4a8626a

Please sign in to comment.