https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improved checks when adding contacts
[friendica.git/.git]
/
src
/
Model
/
Contact.php
diff --git
a/src/Model/Contact.php
b/src/Model/Contact.php
index
b0b5fcc
..
c6e3a4c
100644
(file)
--- a/
src/Model/Contact.php
+++ b/
src/Model/Contact.php
@@
-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);