|
|
|
@ -183,10 +183,14 @@ function getCharBuffs($items) {
|
|
|
|
|
* noavatar.gif zurueck!)
|
|
|
|
|
* returns Url of Avatar-Picture
|
|
|
|
|
* */
|
|
|
|
|
function getPicture($char){
|
|
|
|
|
function getPicture($char) {
|
|
|
|
|
$hide = false;
|
|
|
|
|
if(isset($GLOBALS['user_array'])) {
|
|
|
|
|
$data = getUserMetaData($GLOBALS['user_array']['id']);
|
|
|
|
|
$hide = $data['hide_avatars'] == 1;
|
|
|
|
|
}
|
|
|
|
|
// Sichergehen, dass Char geladen wurde
|
|
|
|
|
if($char['bild'] == null || $char['bild'] == '' || $data['hide_avatars'] == 1){
|
|
|
|
|
if($char['bild'] == null || $char['bild'] == '' || $hide) {
|
|
|
|
|
return 'design/bilder/avatare/noavart.gif';
|
|
|
|
|
}
|
|
|
|
|
return $char['bild'];
|
|
|
|
|