mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
fix: PHP Notice: Undefined variable: oEmail
This commit is contained in:
parent
8c0276631b
commit
3d2e7968d4
1 changed files with 3 additions and 3 deletions
|
@ -292,13 +292,13 @@ class Contact
|
||||||
{
|
{
|
||||||
foreach($oVCard->URL as $oUrl)
|
foreach($oVCard->URL as $oUrl)
|
||||||
{
|
{
|
||||||
$oTypes = $oEmail ? $oEmail['TYPE'] : null;
|
$oTypes = $oUrl ? $oUrl['TYPE'] : null;
|
||||||
$sUrl = $oTypes ? \trim((string) $oUrl) : '';
|
$sUrl = $oTypes ? \trim((string) $oUrl) : '';
|
||||||
|
|
||||||
if ($oTypes && 0 < \strlen($sUrl))
|
if ($oTypes && 0 < \strlen($sUrl))
|
||||||
{
|
{
|
||||||
$oProp = new Property($oTypes->has('WORK') ? PropertyType::WEB_PAGE_BUSSINES : PropertyType::WEB_PAGE_PERSONAL, $sEmail);
|
\array_push($aProperties,
|
||||||
\array_push($aProperties, $oProp);
|
new Property($oTypes->has('WORK') ? PropertyType::WEB_PAGE_BUSSINES : PropertyType::WEB_PAGE_PERSONAL, $sUrl));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue