sforkowany z mirror/friendica
check if user_info is an array before counting
rodzic
b06fc57880
commit
6986e6902b
|
@ -953,7 +953,7 @@ function api_account_verify_credentials($type)
|
|||
// - Adding last status
|
||||
if (!$skip_status) {
|
||||
$user_info["status"] = api_status_show("raw");
|
||||
if (!count($user_info["status"])) {
|
||||
if (!is_array($user_info["status"]) || !count($user_info["status"])) {
|
||||
unset($user_info["status"]);
|
||||
} else {
|
||||
unset($user_info["status"]["user"]);
|
||||
|
|
Ładowanie…
Reference in New Issue