Skip to content

Commit 6a76a77

Browse files
authored
Merge pull request #2416 from musmanikram/2412-add-missing-braces-for-has-error
Add missing closing braces of condition 'hasError()' under `Check If…
2 parents 01878e9 + 9cedcd5 commit 6a76a77

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)