|
@@ 314-316 (lines=3) @@
|
| 311 |
|
// My own priority: Homepage, blog, other, something else. |
| 312 |
|
if (property_exists($xingProfile, 'web_profiles')) { |
| 313 |
|
$newContact->webSiteURL = (property_exists($xingProfile->web_profiles, 'homepage')) ? $xingProfile->web_profiles->homepage[0] : null; |
| 314 |
|
if (null === $newContact->webSiteURL) { |
| 315 |
|
$newContact->webSiteURL = (property_exists($xingProfile->web_profiles, 'blog')) ? $xingProfile->web_profiles->blog[0] : null; |
| 316 |
|
} |
| 317 |
|
if (null === $newContact->webSiteURL) { |
| 318 |
|
$newContact->webSiteURL = (property_exists($xingProfile->web_profiles, 'other')) ? $xingProfile->web_profiles->other[0] : null; |
| 319 |
|
} |
|
@@ 317-319 (lines=3) @@
|
| 314 |
|
if (null === $newContact->webSiteURL) { |
| 315 |
|
$newContact->webSiteURL = (property_exists($xingProfile->web_profiles, 'blog')) ? $xingProfile->web_profiles->blog[0] : null; |
| 316 |
|
} |
| 317 |
|
if (null === $newContact->webSiteURL) { |
| 318 |
|
$newContact->webSiteURL = (property_exists($xingProfile->web_profiles, 'other')) ? $xingProfile->web_profiles->other[0] : null; |
| 319 |
|
} |
| 320 |
|
// Just use *anything*! |
| 321 |
|
if (null === $newContact->webSiteURL) { |
| 322 |
|
foreach ($xingProfile->web_profiles as $aUrl) { |