]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Fix notice "Undefined index: href"
[friendica.git] / include / items.php
index 4cc10e628cd50ec95f56884f2c4b6e58f856e50e..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 "";