]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Issue 10105: Use legacy photo data field if used
[friendica.git] / src / Model / Contact.php
index b0b5fcc91b0dd37bedfb3de5b4efe83d0906434a..411cf333ef5820e1e080b02e0a138f077b6ca9c7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -2821,6 +2821,9 @@ class Contact
                $count = 0;
 
                foreach ($urls as $url) {
+                       if (empty($url) || !is_string($url)) {
+                               continue;
+                       }
                        $contact = self::getByURL($url, false, ['id', 'updated']);
                        if (empty($contact['id'])) {
                                Worker::add(PRIORITY_LOW, 'AddContact', 0, $url);