Skip to content

Commit

Permalink
Merge pull request #2416 from musmanikram/2412-add-missing-braces-for…
Browse files Browse the repository at this point in the history
…-has-error

Add missing closing braces of condition 'hasError()' under `Check If…
  • Loading branch information
lonnieezell authored Nov 19, 2019
2 parents 01878e9 + 9cedcd5 commit 6a76a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ Check If Error Exists

You can check to see if an error exists with the ``hasError()`` method. The only parameter is the field name::

if ($validation->hasError('username')
if ($validation->hasError('username'))
{
echo $validation->getError('username');
}
Expand Down

0 comments on commit 6a76a77

Please sign in to comment.