Weird stuff
This commit is contained in:
parent
81c002370e
commit
c6c94b8cea
1 changed files with 2 additions and 2 deletions
|
@ -1699,7 +1699,7 @@ class Contact extends BaseObject
|
||||||
{
|
{
|
||||||
$cid = self::getIdForURL($contact_url, 0, true);
|
$cid = self::getIdForURL($contact_url, 0, true);
|
||||||
if (empty($cid)) {
|
if (empty($cid)) {
|
||||||
return ($url != '') ? $url : $contact_url;
|
return $url ?: $contact_url; // Equivalent to: ($url != '') ? $url : $contact_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::magicLinkbyId($cid, $url);
|
return self::magicLinkbyId($cid, $url);
|
||||||
|
@ -1718,7 +1718,7 @@ class Contact extends BaseObject
|
||||||
$contact = dba::selectFirst('contact', ['network', 'url', 'uid'], ['id' => $cid]);
|
$contact = dba::selectFirst('contact', ['network', 'url', 'uid'], ['id' => $cid]);
|
||||||
|
|
||||||
if ($contact['network'] != NETWORK_DFRN) {
|
if ($contact['network'] != NETWORK_DFRN) {
|
||||||
return ($url != '') ? $url : $contact['url'];
|
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only redirections to the same host do make sense
|
// Only redirections to the same host do make sense
|
||||||
|
|
Loading…
Reference in a new issue