From 07e33e54236424909eb13eeae5cf956fd2fe7c27 Mon Sep 17 00:00:00 2001 From: Exile Date: Thu, 1 Jan 2015 12:36:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D1=84=D0=B8=D0=BA=D1=81=20=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавление дополнительной проверки к тортам, до замены даты на unixtime. --- library/config.php | 2 +- viewtopic.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/config.php b/library/config.php index 9a16b3fce..4af6afe64 100644 --- a/library/config.php +++ b/library/config.php @@ -72,7 +72,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do // Version info $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_zf_version'] = '2.3.3'; diff --git a/viewtopic.php b/viewtopic.php index 293410242..54d50e466 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -572,7 +572,7 @@ for($i = 0; $i < $total_posts; $i++) { $poster_id = $postrow[$i]['user_id']; $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']); $max_post_time = max($max_post_time, $postrow[$i]['post_time']); $poster_posts = ($poster_id != GUEST_UID) ? $postrow[$i]['user_posts'] : '';