mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
Fix $called_api expecting at least 2 elements in tests
This commit is contained in:
parent
6776c4e3f9
commit
a329ce5b50
2 changed files with 2 additions and 1 deletions
|
@ -575,6 +575,7 @@ function api_get_user(App $a, $contact_id = null)
|
|||
}
|
||||
}
|
||||
|
||||
// $called_api is the API path exploded on / and is expected to have at least 2 elements
|
||||
if (is_null($user) && ($a->argc > (count($called_api) - 1)) && (count($called_api) > 0)) {
|
||||
$argid = count($called_api);
|
||||
list($user, $null) = explode(".", $a->argv[$argid]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue