check availability of Avatar at various places
This commit is contained in:
parent
b1a92bcd03
commit
13cd80f436
8 changed files with 23 additions and 4 deletions
|
|
@ -103,6 +103,12 @@
|
|||
foreach($this->Seminarycharacterfields->getFieldsForCharacter($character['id']) as $value) {
|
||||
$character['characterfields'][$value['url']] = $value;
|
||||
}
|
||||
try {
|
||||
$character['avatar'] = $this->Avatars->getAvatarByTypeAndLevel($seminary['id'], $character['charactertype_url'], $character['xplevel']['level']);
|
||||
}
|
||||
catch(\nre\exceptions\IdNotFoundException $e) {
|
||||
// No Avatar available
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue