diff --git a/html/inc/forum.inc b/html/inc/forum.inc
index 04f7bf491d..8f22ef3dc5 100644
--- a/html/inc/forum.inc
+++ b/html/inc/forum.inc
@@ -488,6 +488,12 @@ function is_ignoring($user, $other_user) {
return in_array($other_user->id, $list);
}
+// if avatar is from gravatar, make it HTTPS
+//
+function avatar_url($url) {
+ return str_replace('http:', 'https:', $url);
+}
+
// Display an individual post
//
function show_post(
@@ -579,7 +585,7 @@ function show_post(
echo "";
if (!$filter || !$ignore_poster){
if ($user->prefs && $user->prefs->avatar!="" && (!$logged_in_user || ($logged_in_user->prefs->hide_avatars==false))) {
- echo "prefs->avatar."\" alt=\"Avatar\">
";
+ echo "prefs->avatar)."\" alt=\"Avatar\">
";
}
}