Simplified gender function (#1167)

* Simplified gender function

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-11-24 17:24:53 +03:00 committed by GitHub
commit 9973931004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 20 deletions

View file

@ -707,7 +707,7 @@ for ($i = 0; $i < $total_posts; $i++) {
'POSTER_GUEST' => $poster_guest,
'POSTER_ID' => $poster_id,
'POSTER_AUTHOR' => ($poster_id == $t_data['topic_poster']),
'POSTER_GENDER' => $bb_cfg['gender'] ? gender_image($postrow[$i]['user_gender']) : '',
'POSTER_GENDER' => genderImage((int)$postrow[$i]['user_gender']),
'POSTED_AFTER' => $prev_post_time ? delta_time($postrow[$i]['post_time'], $prev_post_time) : '',
'IS_UNREAD' => is_unread($postrow[$i]['post_time'], $topic_id, $forum_id),
'IS_FIRST_POST' => (!$start && $is_first_post),