]> git.mxchange.org Git - friendica-addons.git/blobdiff - libravatar/Services/Libravatar.php
curweather addon FR translation updated THX bob lebonche
[friendica-addons.git] / libravatar / Services / Libravatar.php
index 1b6d022e390d1dd87d94dd0810ad5606c1f603e5..c679ca9da34d6fb30ec3a903066db4a83f580d2d 100644 (file)
@@ -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';
         }
@@ -549,6 +549,8 @@ class Services_Libravatar
         case 'monsterid':
         case 'wavatar':
         case 'retro':
+        case 'robohash':
+        case 'pagan':
             break;
         default:
             $valid = filter_var($url, FILTER_VALIDATE_URL);