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

Diff of /lbbs/src/section_list_loader.c

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

Revision 1.45 by sysadm, Sat Oct 4 04:01:19 2025 UTC Revision 1.46 by sysadm, Mon Oct 6 11:51:03 2025 UTC
# Line 151  int load_section_config_from_db(int upda Line 151  int load_section_config_from_db(int upda
151                  p_section->enable = (int8_t)atoi(row[6]);                  p_section->enable = (int8_t)atoi(row[6]);
152    
153                  // Update gen_ex menu set                  // Update gen_ex menu set
154                  if (update_gen_ex && p_section->enable && atoi(row[7]) > p_section->ex_menu_tm)                  if (update_gen_ex && p_section->enable && atol(row[7] == NULL ? "0" : row[7]) > p_section->ex_menu_tm)
155                  {                  {
156                          snprintf(ex_menu_conf, sizeof(ex_menu_conf), "%s/%d", VAR_GEN_EX_MENU_DIR, p_section->sid);                          snprintf(ex_menu_conf, sizeof(ex_menu_conf), "%s/%d", VAR_GEN_EX_MENU_DIR, p_section->sid);
157    
# Line 177  int load_section_config_from_db(int upda Line 177  int load_section_config_from_db(int upda
177  #endif  #endif
178                          }                          }
179                  }                  }
180                    else
181                    {
182                            p_section->ex_menu_tm = 0;
183                    }
184    
185                  // release rw lock                  // release rw lock
186                  ret = section_list_rw_unlock(p_section);                  ret = section_list_rw_unlock(p_section);


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

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