Fixed undefined array key group_description (#969)

This commit is contained in:
Roman Kelesidis 2023-10-13 12:43:05 +07:00 committed by GitHub
commit 3ec1699612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,7 +311,7 @@ if ($t_data['topic_show_first_post'] && $start) {
u.user_regdate, u.user_sig, u.user_regdate, u.user_sig,
u.avatar_ext_id, u.avatar_ext_id,
u.user_opt, u.user_gender, u.user_birthday, u.user_opt, u.user_gender, u.user_birthday,
p.*, g.group_name, g.group_id, g.group_signature, g.avatar_ext_id as rg_avatar_id, p.*, g.group_name, g.group_description, g.group_id, g.group_signature, g.avatar_ext_id as rg_avatar_id,
u2.username as mc_username, u2.user_rank as mc_user_rank, u2.username as mc_username, u2.user_rank as mc_user_rank,
h.post_html, IF(h.post_html IS NULL, pt.post_text, NULL) AS post_text h.post_html, IF(h.post_html IS NULL, pt.post_text, NULL) AS post_text
FROM " . BB_POSTS . " p FROM " . BB_POSTS . " p
@ -332,7 +332,7 @@ $sql = "
u.user_regdate, u.user_sig, u.user_regdate, u.user_sig,
u.avatar_ext_id, u.avatar_ext_id,
u.user_opt, u.user_gender, u.user_birthday, u.user_opt, u.user_gender, u.user_birthday,
p.*, g.group_name, g.group_id, g.group_signature, g.avatar_ext_id as rg_avatar_id, p.*, g.group_name, g.group_description, g.group_id, g.group_signature, g.avatar_ext_id as rg_avatar_id,
u2.username as mc_username, u2.user_rank as mc_user_rank, u2.username as mc_username, u2.user_rank as mc_user_rank,
h.post_html, IF(h.post_html IS NULL, pt.post_text, NULL) AS post_text h.post_html, IF(h.post_html IS NULL, pt.post_text, NULL) AS post_text
FROM " . BB_POSTS . " p FROM " . BB_POSTS . " p