| 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 |
|
|
| 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); |