Skip to content

Commit

Permalink
[ci skip] be smart
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Sep 28, 2019
1 parent ba9c9c0 commit 393e44e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Validation/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,9 @@ public function getErrors(): array
// passed along from a redirect_with_input request.
if (empty($this->errors) && ! is_cli())
{
if (isset($_SESSION) && session('_ci_validation_errors'))
if (isset($_SESSION) && $errors = session('_ci_validation_errors'))
{
$this->errors = unserialize(session('_ci_validation_errors'));
$this->errors = unserialize($errors);
}
}

Expand Down

0 comments on commit 393e44e

Please sign in to comment.