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