]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/OStatus/Subscribe.php
spelling: one
[friendica.git] / src / Module / OStatus / Subscribe.php
index 52bd19aef205cafae9e259df3cc738b9a66ca381..b5a5a4d27e909862d2091be5d25ba2923cc862cb 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -142,7 +142,7 @@ class Subscribe extends \Friendica\BaseModule
                $o .= '<p>' . $counter . '/' . $total . ': ' . $url;
 
                $probed = Contact::getByURL($url);
-               if (in_array($probed['network'], Protocol::FEDERATED)) {
+               if (!empty($probed['network']) && in_array($probed['network'], Protocol::FEDERATED)) {
                        $result = Contact::createFromProbeForUser($this->session->getLocalUserId(), $probed['url']);
                        if ($result['success']) {
                                $o .= ' - ' . $this->t('success');