From 04b7280f38f4d265266b5c80f792886f72e1182f Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 2 Mar 2019 14:23:46 +0100 Subject: [PATCH] Take void return into account --- include/api.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/api.php b/include/api.php index 20bd0923b6..64b7409fa2 100644 --- a/include/api.php +++ b/include/api.php @@ -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"]); + } } } -- 2.39.5