From 6986e6902b409645f5d2ba877716f5a0232771d0 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 2 Mar 2019 11:55:51 +0100 Subject: [PATCH] check if user_info is an array before counting --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]); -- 2.39.5