Fix errors

This commit is contained in:
ruan 2015-09-12 07:28:59 +02:00
parent 33398503ce
commit 601dd18cd8

View File

@ -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;
}