- Проверка скрипта

parent 0edf36f5
......@@ -224,7 +224,7 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
return 'Email not found';
}
$user = User::findByUsername($email);
$user = User::findOne(['email' => $email]);
$templateData['user_fio'] = (!is_null($user)) ? $user->fio : '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment