mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:10:11 +00:00
Warnings fixed
This commit is contained in:
parent
c25c3b5981
commit
3e797547a3
17 changed files with 55 additions and 45 deletions
|
@ -579,7 +579,9 @@ 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]);
|
||||
if (!empty($a->argv[$argid])) {
|
||||
list($user, $null) = explode(".", $a->argv[$argid]);
|
||||
}
|
||||
if (is_numeric($user)) {
|
||||
$user = dbesc(api_unique_id_to_nurl(intval($user)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue