]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
Still there had been notices - must have a good camouflage
[friendica.git] / src / Protocol / DFRN.php
index 759f7f5f28b03c7596e7b42f607f88bfad67a1f5..c4355503137923dc9c662f38e626b040b2be20c3 100644 (file)
@@ -2407,8 +2407,11 @@ class DFRN
                                                break;
                                        case "enclosure":
                                                $enclosure = $href;
-                                               if (strlen($item["attach"])) {
+
+                                               if (!empty($item["attach"])) {
                                                        $item["attach"] .= ",";
+                                               } else {
+                                                       $item["attach"] = "";
                                                }
 
                                                $item["attach"] .= '[attach]href="' . $href . '" length="' . $length . '" type="' . $type . '" title="' . $title . '"[/attach]';