You've already forked Epicnabbo-Catalogus-Updated-Daily
Update UserAvatarColumn.php
This commit is contained in:
@@ -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}";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user