diff --git a/identity_smtp.php b/identity_smtp.php index cc75f77..8b5d30e 100644 --- a/identity_smtp.php +++ b/identity_smtp.php @@ -121,7 +121,8 @@ function loadSmtpSettings($args) function identityFormWillBeDisplayed($args) { $form = $args['form']; - $record = $args['record']; + $record = isset($args['record']) ? $args['record'] : []; + // Load the stored smtp settings $smtpSettingsRecord = $this->loadSmtpSettings($record);