From: Philipp Holzer Date: Sat, 2 Mar 2019 10:55:51 +0000 (+0100) Subject: check if user_info is an array before counting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6986e6902b409645f5d2ba877716f5a0232771d0;p=friendica.git check if user_info is an array before counting --- diff --git a/include/api.php b/include/api.php index 9de054e0a0..20bd0923b6 100644 --- a/include/api.php +++ b/include/api.php @@ -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"]);