]> git.mxchange.org Git - friendica.git/commitdiff
check if user_info is an array before counting
authorPhilipp Holzer <admin@philipp.info>
Sat, 2 Mar 2019 10:55:51 +0000 (11:55 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sat, 2 Mar 2019 10:55:51 +0000 (11:55 +0100)
include/api.php

index 9de054e0a0122cffcfaa2a8b9ad073de4b97485f..20bd0923b6891a433322db33d243c56ee89e7edd 100644 (file)
@@ -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"]);