Skip to content

Commit

Permalink
Add missing closing brances of condition 'hasError()' under `Check If…
Browse files Browse the repository at this point in the history
… Error Exists`
  • Loading branch information
musmanikram committed Nov 18, 2019
1 parent 01878e9 commit 9cedcd5
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 9cedcd5

Please sign in to comment.