https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4909075
)
Bugfix: Contact wasn't added on probing
author
Michael
<heluecht@pirati.ca>
Mon, 30 Apr 2018 16:45:00 +0000
(16:45 +0000)
committer
Michael
<heluecht@pirati.ca>
Mon, 30 Apr 2018 16:45:00 +0000
(16:45 +0000)
src/Network/Probe.php
patch
|
blob
|
history
diff --git
a/src/Network/Probe.php
b/src/Network/Probe.php
index
d14c623
..
6e7e21d
100644
(file)
--- a/
src/Network/Probe.php
+++ b/
src/Network/Probe.php
@@
-444,6
+444,11
@@
class Probe
$old_fields = dba::selectFirst('contact', $fieldnames, $condition);
+ // When the contact doesn't exist, the value "true" will trigger an insert
+ if (!$old_fields) {
+ $old_fields = true;
+ }
+
dba::update('contact', $fields, $condition, $old_fields);
}
}