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