From bc63e232ce8ba43766235dab7581a319e9a73279 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 11 Mar 2023 21:41:38 +0700 Subject: [PATCH] Poster birthday with no birthday date fix https://github.com/torrentpier/torrentpier/pull/120 --- viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewtopic.php b/viewtopic.php index f8d6ca00..b90cb309 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -649,7 +649,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'] : '';