mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Fix errors
This commit is contained in:
parent
33398503ce
commit
601dd18cd8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user