Update UserAvatarColumn.php

This commit is contained in:
Remco
2026-01-19 23:27:34 +01:00
parent 2c48253924
commit ca16e5ecea
@@ -21,9 +21,17 @@ class UserAvatarColumn extends Column
return ''; return '';
} }
if (! is_object($record)) {
return '';
}
$figure = $this->figurePointer $figure = $this->figurePointer
? data_get($record, $this->figurePointer) ? data_get($record, $this->figurePointer)
: $record->look; : (property_exists($record, 'look') ? $record->look : null);
if (! is_string($figure)) {
return '';
}
return "{$figureImagerUrl}{$figure}{$this->avatarOptions}"; return "{$figureImagerUrl}{$figure}{$this->avatarOptions}";
} }