From 9cedcd5480fd856e19bfb1318f4435f8d6d77b79 Mon Sep 17 00:00:00 2001 From: musmanikram Date: Mon, 18 Nov 2019 22:43:35 +0100 Subject: [PATCH] Add missing closing brances of condition 'hasError()' under `Check If Error Exists` --- user_guide_src/source/libraries/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/validation.rst b/user_guide_src/source/libraries/validation.rst index af3424ee9778..29025515a234 100644 --- a/user_guide_src/source/libraries/validation.rst +++ b/user_guide_src/source/libraries/validation.rst @@ -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'); }