Skip to content

Commit

Permalink
Merge pull request #2284 from michalsn/fix_get_errors_bug
Browse files Browse the repository at this point in the history
Fix getErrors() for validation with redirect
  • Loading branch information
MGatner authored Oct 2, 2019
2 parents 0900942 + 393e44e commit 1c42062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Validation/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ 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($errors);
}
Expand Down

0 comments on commit 1c42062

Please sign in to comment.