And more notices ...
authorMichael <heluecht@pirati.ca>
Tue, 11 Sep 2018 08:04:14 +0000 (08:04 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 11 Sep 2018 08:04:14 +0000 (08:04 +0000)
src/Protocol/PortableContact.php

index 20ee77a..2939f69 100644 (file)
@@ -1157,9 +1157,9 @@ class PortableContact
 
                                if (isset($data['version'])) {
                                        $platform = "Mastodon";
-                                       $version = $data['version'];
-                                       $site_name = $data['title'];
-                                       $info = $data['description'];
+                                       $version = defaults($data, 'version', '');
+                                       $site_name = defaults($data, 'title', '');
+                                       $info = defaults($data, 'description', '');
                                        $network = Protocol::OSTATUS;
                                }