mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Merge pull request #8 from torrentpier/poster_birthday_fix
Poster birthday with no birthday date fix
This commit is contained in:
commit
b0d616fb39
@ -649,7 +649,7 @@ for($i = 0; $i < $total_posts; $i++)
|
|||||||
{
|
{
|
||||||
$poster_id = $postrow[$i]['user_id'];
|
$poster_id = $postrow[$i]['user_id'];
|
||||||
$poster = ($poster_id == GUEST_UID) ? $lang['GUEST'] : $postrow[$i]['username'];
|
$poster = ($poster_id == GUEST_UID) ? $lang['GUEST'] : $postrow[$i]['username'];
|
||||||
$poster_birthday = ($poster_id != GUEST_UID) ? date('md', strtotime($postrow[$i]['user_birthday'])) : '';
|
$poster_birthday = ($poster_id != GUEST_UID && $postrow[$i]['user_birthday'] != '0000-00-00') ? date('md', strtotime($postrow[$i]['user_birthday'])) : '';
|
||||||
$post_date = bb_date($postrow[$i]['post_time'], $bb_cfg['post_date_format']);
|
$post_date = bb_date($postrow[$i]['post_time'], $bb_cfg['post_date_format']);
|
||||||
$max_post_time = max($max_post_time, $postrow[$i]['post_time']);
|
$max_post_time = max($max_post_time, $postrow[$i]['post_time']);
|
||||||
$poster_posts = ($poster_id != GUEST_UID) ? $postrow[$i]['user_posts'] : '';
|
$poster_posts = ($poster_id != GUEST_UID) ? $postrow[$i]['user_posts'] : '';
|
||||||
|
Loading…
Reference in New Issue
Block a user