mirror of
https://github.com/friendica/friendica
synced 2025-04-21 05:10:11 +00:00
Simplifying extension access
This commit is contained in:
parent
8e8ec9d2d2
commit
0e15715088
5 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ class Test extends BaseApi
|
|||
{
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
if (!empty($this->parameters['extension']) && ($this->parameters['extension'] == 'xml')) {
|
||||
if ($this->parameters['extension'] ?? '' == 'xml') {
|
||||
$ok = 'true';
|
||||
} else {
|
||||
$ok = 'ok';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue