mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor fixes (#89)
This commit is contained in:
parent
6c28494061
commit
d3f7d586d5
@ -16,7 +16,7 @@ function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$
|
||||
{
|
||||
global $lang, $images, $bb_cfg;
|
||||
|
||||
$from = (!empty($row['user_from'])) ? $row['user_from'] : '';
|
||||
$from = (!empty($row['user_from'])) ? $row['user_from'] : $lang['NOSELECT'];
|
||||
$joined = bb_date($row['user_regdate']);
|
||||
$user_time = (!empty($row['user_time'])) ? bb_date($row['user_time']) : $lang['NONE'];
|
||||
$posts = ($row['user_posts']) ? $row['user_posts'] : 0;
|
||||
@ -28,13 +28,13 @@ function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$
|
||||
$email_uri = ($bb_cfg['board_email_form']) ? ("profile.php?mode=email&". POST_USERS_URL ."=".$row['user_id']) : 'mailto:'. $row['user_email'];
|
||||
$email = '<a class="editable" href="'. $email_uri .'">'. $row['user_email'] .'</a>';
|
||||
}
|
||||
else $email = '';
|
||||
else $email = $lang['NOSELECT'];
|
||||
|
||||
if ($row['user_website'])
|
||||
{
|
||||
$www = ($bb_cfg['text_buttons']) ? '<a class="txtb" href="'. $row['user_website'] .'" target="_userwww">'. $lang['VISIT_WEBSITE_TXTB'] .'</a>' : '<a class="txtb" href="'. $row['user_website'] .'" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['VISIT_WEBSITE'] . '" title="' . $lang['VISIT_WEBSITE'] . '" border="0" /></a>';
|
||||
}
|
||||
else $www = '';
|
||||
else $www = $lang['NOSELECT'];
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ if ($result = DB()->fetch_rowset($sql))
|
||||
}
|
||||
else
|
||||
{
|
||||
$email = '';
|
||||
$email = $lang['NOSELECT'];
|
||||
}
|
||||
|
||||
if ($row['user_website'])
|
||||
@ -187,7 +187,12 @@ if ($result = DB()->fetch_rowset($sql))
|
||||
}
|
||||
else
|
||||
{
|
||||
$www = '';
|
||||
$www = $lang['NOSELECT'];
|
||||
}
|
||||
|
||||
if(!$from)
|
||||
{
|
||||
$from = $lang['NOSELECT'];
|
||||
}
|
||||
|
||||
$row_class = !($i % 2) ? 'row1' : 'row2';
|
||||
|
Loading…
Reference in New Issue
Block a user