- if ($errors->IsEmpty()) {
- if (!ttUserHelper::getUserByLogin($cl_login)) {
- // User with a specified login was not found.
- // In this case, if login looks like email, try finding user by email.
- if (ttValidEmail($cl_login)) {
+ if ($err->no()) {
+ if (!ttUserHelper::getUserByLogin($cl_login)) {
+ // User with a specified login was not found.
+ // In this case, if login looks like email, try finding user by email.
+ if (ttValidEmail($cl_login)) {