From 601dd18cd8fc847edd59429484e424592b03a48d Mon Sep 17 00:00:00 2001 From: ruan Date: Sat, 12 Sep 2015 07:28:59 +0200 Subject: [PATCH] Fix errors --- includes/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }