From: Michael Date: Mon, 2 Mar 2020 17:20:18 +0000 (+0000) Subject: Fixing tests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3a6d3cd4392baec94e3bdb591072f3bc0d45a137;p=friendica.git Fixing tests --- diff --git a/include/api.php b/include/api.php index 62c69767f3..3a29184ec7 100644 --- a/include/api.php +++ b/include/api.php @@ -783,7 +783,7 @@ function api_item_get_user(App $a, $item) $author_user = $status_user; - $status_user["protected"] = $item['private'] == Item::PRIVATE; + $status_user["protected"] = isset($item['private']) && ($item['private'] == Item::PRIVATE); if (($item['thr-parent'] ?? '') == ($item['uri'] ?? '')) { $owner_user = api_get_user($a, $item['owner-id'] ?? null);