mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 17:44:27 +02:00
Simplifying extension access
This commit is contained in:
parent
8e8ec9d2d2
commit
0e15715088
5 changed files with 5 additions and 5 deletions
|
@ -48,7 +48,7 @@ class Show extends BaseApi
|
|||
$profile = self::formatProfile($profile, $profileFields);
|
||||
|
||||
$profiles = [];
|
||||
if (!empty($this->parameters['extension']) && ($this->parameters['extension'] == 'xml')) {
|
||||
if ($this->parameters['extension'] ?? '' == 'xml') {
|
||||
$profiles['0:profile'] = $profile;
|
||||
} else {
|
||||
$profiles[] = $profile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue