Commit cdecd3c4 authored by fettesvieh's avatar fettesvieh

little bugfix

parent c3759a0d
......@@ -8,7 +8,7 @@ breadcrumb::assign($lang->t('users', 'view_profile'));
if (validate::isNumber($uri->id) && $db->countRows('*', 'users', 'id = \'' . $uri->id . '\'') == '1') {
$user = $auth->getUserInfo($uri->id);
$user['gender'] = str_replace(array(1, 2, 3), array('-', $lang->t('users', 'female'), $lang->t('users', 'male')), $user['gender']);
$user['birthday'] = $date->format($user['birthday'], 'd.m.Y');
$user['birthday'] = $date->format($user['birthday'], $user['birthday_format'] == 1 ? 'd.m.Y' : 'd.m');
$tpl->assign('user', $user);
}
$content = $tpl->fetch('users/view_profile.html');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment