projects
/
friendica-addons.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c303e20
)
Libravatar: Fixes a problem when a DNS request failed
author
Michael
<heluecht@pirati.ca>
Wed, 16 Dec 2020 19:44:54 +0000
(19:44 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 16 Dec 2020 19:44:54 +0000
(19:44 +0000)
libravatar/Services/Libravatar.php
patch
|
blob
|
history
diff --git
a/libravatar/Services/Libravatar.php
b/libravatar/Services/Libravatar.php
index f182a996ee2928a38a10831c5453d67e74c36659..c679ca9da34d6fb30ec3a903066db4a83f580d2d 100644
(file)
--- a/
libravatar/Services/Libravatar.php
+++ b/
libravatar/Services/Libravatar.php
@@
-413,10
+413,10
@@
class Services_Libravatar
// Lets try get us some records based on the choice of subdomain
// and the domain we had passed in.
- $srv = dns_get_record($subdomain . $domain, DNS_SRV);
+ $srv =
@
dns_get_record($subdomain . $domain, DNS_SRV);
// Did we get anything? No?
- if (
count($srv) == 0
) {
+ if (
empty($srv)
) {
// Then let's try Libravatar.org.
return $fallback . 'libravatar.org';
}