Skip to content

Commit 9cedcd5

Browse files
committed
Add missing closing brances of condition 'hasError()' under Check If Error Exists
1 parent 01878e9 commit 9cedcd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ Check If Error Exists
480480

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

483-
if ($validation->hasError('username')
483+
if ($validation->hasError('username'))
484484
{
485485
echo $validation->getError('username');
486486
}

0 commit comments

Comments
 (0)