/[LeafOK_CVS]/lbbs/src/section_list.c
ViewVC logotype

Diff of /lbbs/src/section_list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.48 by sysadm, Wed Oct 29 01:42:06 2025 UTC Revision 1.49 by sysadm, Mon Nov 3 08:48:56 2025 UTC
# Line 1084  int section_list_page_article_count_with Line 1084  int section_list_page_article_count_with
1084          }          }
1085          else // if (page_id >= p_section->page_count - 1)          else // if (page_id >= p_section->page_count - 1)
1086          {          {
1087                  return MAX(0, (p_section->last_page_visible_article_count + p_section->ontop_article_count -                  return MIN(MAX(0,
1088                                             BBS_article_limit_per_page * (page_id - p_section->page_count + 1)));                                             (p_section->last_page_visible_article_count + p_section->ontop_article_count -
1089                                                    BBS_article_limit_per_page * (page_id - p_section->page_count + 1))),
1090                                       BBS_article_limit_per_page);
1091          }          }
1092  }  }
1093    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1