]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Fix notice "Undefined index: href"
[friendica.git] / include / items.php
index ae686a32d9687070cb43732f458865f5ccf60551..3868db40a29770b186d918baa3d0651706bfb568 100644 (file)
@@ -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;
        }