]> git.mxchange.org Git - friendica.git/commitdiff
Take void return into account
authorPhilipp Holzer <admin@philipp.info>
Sat, 2 Mar 2019 13:23:46 +0000 (14:23 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sat, 2 Mar 2019 13:23:46 +0000 (14:23 +0100)
include/api.php

index 20bd0923b6891a433322db33d243c56ee89e7edd..64b7409fa2a77ea8493180c411d95f497d0b1e4a 100644 (file)
@@ -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"]);
+                       }
                }
        }