X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fitems.php;h=3868db40a29770b186d918baa3d0651706bfb568;hb=b2d17abc7b481321bcac0b6f995a6fc3703c99f3;hp=ae686a32d9687070cb43732f458865f5ccf60551;hpb=6e9026e033130f5d46ec65cbe9fb2c32c81c490a;p=friendica.git diff --git a/include/items.php b/include/items.php index ae686a32d9..3868db40a2 100644 --- a/include/items.php +++ b/include/items.php @@ -42,7 +42,7 @@ function add_page_info_data(array $data, $no_photos = false) $data["type"] = "link"; } - $data["title"] = defaults($data, "title", ""); + $data["title"] = $data["title"] ?? ''; if ((($data["type"] != "link") && ($data["type"] != "video") && ($data["type"] != "photo")) || ($data["title"] == $data["url"])) { return ""; @@ -327,7 +327,7 @@ function drop_items(array $items) { $uid = 0; - if (!local_user() && !remote_user()) { + if (!Session::isAuthenticated()) { return; }