checkin changes performed on the cronjobs

main
hecht 8 years ago
parent 5f0db62c1a
commit e2f198084f

@ -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'];

@ -68,4 +68,3 @@ $pic_g31 = 75; ///////////Bild Groesse
$GLOBALS['user_array'] = $user_ida;
?>

@ -1,4 +1,4 @@
<?php
<?php
/*
*
* @copyright (c) 2009 animegame.eu

@ -14,5 +14,3 @@ function db_query($sql) {
return $qry;
}
?>
Loading…
Cancel
Save