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

parent 07f3f031
......@@ -224,9 +224,9 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
return 'Email not found';
}
$user = User::find()->where(['email' => $email])->one();
$user = User::findByUsername($email);
$templateData['user_fio'] = (!is_null($user)) ? $user->fio : 'ФИО не определено';
$templateData['user_fio'] = (!is_null($user)) ? $user->fio : '';
/** @var \DateTime $time_now */
$time_now=new \DateTime();
......
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