]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
disable formatbar in xs screens
[friendica.git] / include / items.php
index 08858682e60cefc5844370e0d408f987782a504b..2d7597dcd68c6666a090fad3cc67607cd308421e 100644 (file)
@@ -29,6 +29,10 @@ function add_page_info_data(array $data, $no_photos = false)
 {
        Addon::callHooks('page_info_data', $data);
 
+       if (empty($data['type'])) {
+               return '';
+       }
+
        // It maybe is a rich content, but if it does have everything that a link has,
        // then treat it that way
        if (($data["type"] == "rich") && is_string($data["title"]) &&