]> git.mxchange.org Git - friendica-addons.git/commitdiff
Some more notices fixed (#672)
authorMichael Vogel <icarus@dabo.de>
Thu, 26 Jul 2018 19:20:12 +0000 (21:20 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Thu, 26 Jul 2018 19:20:12 +0000 (15:20 -0400)
fromgplus/fromgplus.php
pumpio/pumpio.php
superblock/superblock.php

index 0f208037a0efe3b18846256c2869e991a7af0d67..78cbc83d06820ea5fa10461e75d37769a7debc62 100644 (file)
@@ -363,11 +363,11 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
                                        }
                                }
 
-                               if ($images["preview"] != "") {
+                               if (!empty($images["preview"])) {
                                        $post .= "\n[url=".$images["page"]."][img]".$images["preview"]."[/img][/url]\n";
                                        $pagedata["images"][0]["src"] = $images["preview"];
                                        $pagedata["url"] = $images["page"];
-                               } elseif ($images["full"] != "") {
+                               } elseif (!empty($images["full"])) {
                                        $post .= "\n[img]".$images["full"]."[/img]\n";
                                        $pagedata["images"][0]["src"] = $images["full"];
 
index c0f36c1db88de17b7d6a5089f2ec89066ec10529..5cda94d07efa15f022e22a15ac4e8dec771dfda9 100644 (file)
@@ -1620,7 +1620,9 @@ function pumpio_fetchallcomments(App $a, $uid, $id)
                        $like->object = new stdClass;
                        $like->object->id = $item->id;
                        $like->actor = new stdClass;
-                       $like->actor->displayName = $item->displayName;
+                       if (!empty($item->displayName)) {
+                               $like->actor->displayName = $item->displayName;
+                       }
                        //$like->actor->preferredUsername = $item->preferredUsername;
                        //$like->actor->image = $item->image;
                        $like->actor->url = $item->url;
index 241114866b739f9a3a8ecbeab90de6ab920b7435..96529df8e9f1b9314cc39a8b38f7e90f01f815d2 100644 (file)
@@ -139,7 +139,7 @@ function superblock_item_photo_menu(&$a,&$b) {
 
        $blocked = false;
        $author = $b['item']['author-link'];
-       if(is_array($a->data['superblock'])) {
+       if(!empty($a->data['superblock'])) {
                foreach($a->data['superblock'] as $bloke) {
                        if(link_compare($bloke,$author)) {
                                $blocked = true;