Skip to content

Commit e1b2906

Browse files
authored
Merge pull request #174 from hryvinskyi/patch-2
Added php7.4 support
2 parents 5f4d99c + c883118 commit e1b2906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/ZendMailTwo/Smtp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function updateMailHeader($header)
274274
public function getFromEmailAddress()
275275
{
276276
$result = $this->storeModel->getFrom();
277-
return $result['email'];
277+
return isset($result['email']) ? $result['email'] : '';
278278
}
279279

280280
/**
@@ -283,6 +283,6 @@ public function getFromEmailAddress()
283283
public function getFromName()
284284
{
285285
$result = $this->storeModel->getFrom();
286-
return $result['name'];
286+
return isset($result['name']) ? $result['name'] : '';
287287
}
288288
}

0 commit comments

Comments
 (0)