diff --git a/includes/page.php b/includes/page.php index e382c7a..546a69a 100644 --- a/includes/page.php +++ b/includes/page.php @@ -92,7 +92,7 @@ class Page { * @return string */ function get_avatar($name, $uuid) { - if ($uuid[14] === '3') { + if (strlen($uuid) === 36 && $uuid[14] === '3') { // Avatars cannot be associated with offline mode UUIDs (version 3) $uuid = $name; }