mirror of
https://github.com/friendica/friendica
synced 2024-11-20 09:03:40 +00:00
Take void return into account
This commit is contained in:
parent
6986e6902b
commit
04b7280f38
1 changed files with 6 additions and 4 deletions
|
@ -953,10 +953,12 @@ function api_account_verify_credentials($type)
|
|||
// - Adding last status
|
||||
if (!$skip_status) {
|
||||
$user_info["status"] = api_status_show("raw");
|
||||
if (!is_array($user_info["status"]) || !count($user_info["status"])) {
|
||||
unset($user_info["status"]);
|
||||
} else {
|
||||
unset($user_info["status"]["user"]);
|
||||
if (isset($user_info["status"])) {
|
||||
if (!is_array($user_info["status"]) || !count($user_info["status"])) {
|
||||
unset($user_info["status"]);
|
||||
} else {
|
||||
unset($user_info["status"]["user"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue