mirror of
https://github.com/friendica/friendica
synced 2024-11-19 02:23:41 +00:00
Add provision for result containing only connector profiles in Contact::getDetailsByURL
This commit is contained in:
parent
b4eea625b6
commit
32a8f5003f
1 changed files with 3 additions and 1 deletions
|
@ -1077,7 +1077,6 @@ class Contact
|
|||
}
|
||||
|
||||
if (DBA::isResult($r)) {
|
||||
$authoritativeResult = true;
|
||||
// If there is more than one entry we filter out the connector networks
|
||||
if (count($r) > 1) {
|
||||
foreach ($r as $id => $result) {
|
||||
|
@ -1088,7 +1087,10 @@ class Contact
|
|||
}
|
||||
|
||||
$profile = array_shift($r);
|
||||
}
|
||||
|
||||
if (!empty($profile)) {
|
||||
$authoritativeResult = true;
|
||||
// "bd" always contains the upcoming birthday of a contact.
|
||||
// "birthday" might contain the birthday including the year of birth.
|
||||
if ($profile["birthday"] > DBA::NULL_DATE) {
|
||||
|
|
Loading…
Reference in a new issue