From: Art4 Date: Thu, 13 Mar 2025 11:38:18 +0000 (+0000) Subject: Fix error in libravatar addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2667b4d78ede7dbcc4068acc43ad80209fbb2440;p=friendica-addons.git Fix error in libravatar addon --- diff --git a/libravatar/Services/Libravatar.php b/libravatar/Services/Libravatar.php index e51ef070..a5bd0793 100644 --- a/libravatar/Services/Libravatar.php +++ b/libravatar/Services/Libravatar.php @@ -361,19 +361,19 @@ class Services_Libravatar protected function domainGet($identifier) { if ($identifier === null) { - return null; + return ''; } // What are we, email or openid? Split ourself up and get the // important bit out. if (filter_var($identifier, FILTER_VALIDATE_EMAIL)) { $email = explode('@', $identifier); - return $email[1]; + return (string) $email[1]; } //OpenID $url = parse_url($identifier); - $domain = $url['host']; + $domain = (string) $url['host']; if (isset($url['port']) && $url['scheme'] === 'http' && $url['port'] != 80 || isset($url['port']) && $url['scheme'] === 'https'