From 3a6d3cd4392baec94e3bdb591072f3bc0d45a137 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 2 Mar 2020 17:20:18 +0000 Subject: [PATCH] Fixing tests --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);