mirror of
https://github.com/friendica/friendica
synced 2025-04-29 05:04:24 +02:00
Fix more errors
This commit is contained in:
parent
08ecf2c9a4
commit
12ed714a9e
5 changed files with 13 additions and 17 deletions
|
@ -64,6 +64,8 @@ class Xrd extends BaseModule
|
|||
|
||||
header('Vary: Accept', false);
|
||||
|
||||
$alias = '';
|
||||
|
||||
if ($name == User::getActorName()) {
|
||||
$owner = User::getSystemAccount();
|
||||
if (empty($owner)) {
|
||||
|
@ -108,7 +110,7 @@ class Xrd extends BaseModule
|
|||
$parts[] = current(explode(';', $part));
|
||||
}
|
||||
|
||||
if (empty($parts)) {
|
||||
if ($parts === []) {
|
||||
return $default;
|
||||
} elseif (in_array('application/jrd+json', $parts) && !in_array('application/xrd+xml', $parts)) {
|
||||
return Response::TYPE_JSON;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue