Временный фикс тортов

Добавление дополнительной проверки к тортам, до замены даты на unixtime.
This commit is contained in:
Exile 2015-01-01 12:36:55 +03:00
commit 07e33e5423
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Version info // Version info
$bb_cfg['tp_version'] = '2.1.6'; $bb_cfg['tp_version'] = '2.1.6';
$bb_cfg['tp_release_date'] = '20-12-2014'; $bb_cfg['tp_release_date'] = '**-01-2015';
$bb_cfg['tp_release_state'] = 'ALPHA'; $bb_cfg['tp_release_state'] = 'ALPHA';
$bb_cfg['tp_zf_version'] = '2.3.3'; $bb_cfg['tp_zf_version'] = '2.3.3';

View file

@ -572,7 +572,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'] : '';