if($link['@attributes']['rel'] === 'alias') {
if(strpos($link['@attributes']['href'],'@') === false) {
if(isset($profile)) {
- if($link['@attributes']['href'] !== $profile)
+ if(($link['@attributes']['href'] !== $profile) AND ($alias == ""))
$alias = unamp($link['@attributes']['href']);
}
else