check availability of Avatar at various places

This commit is contained in:
coderkun 2014-07-10 13:19:02 +02:00
commit 13cd80f436
8 changed files with 23 additions and 4 deletions

View file

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