Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel
2022-11-03 21:13:03 +01:00
committed by GitHub
parent 0f9e2b6da4
commit a20c6e3216
2 changed files with 1 additions and 2 deletions

View File

@@ -333,7 +333,6 @@ class Register extends BaseModule
if ($res) {
DI::sysmsg()->addInfo(DI::l10n()->t('Registration successful. Please check your email for further instructions.'));
$this->sendNotification($user, 'SYSTEM_REGISTER_NEW');
if (DI::config()->get('system', 'register_notification')) {
$this->sendNotification($user, 'SYSTEM_REGISTER_NEW');
}