| 173 |
{ |
{ |
| 174 |
p_section->ex_menu_set.allow_exit = 1; // Allow exit menu |
p_section->ex_menu_set.allow_exit = 1; // Allow exit menu |
| 175 |
p_section->ex_menu_tm = atol(row[7]); |
p_section->ex_menu_tm = atol(row[7]); |
| 176 |
#ifdef _DEBUG |
log_debug("Loaded gen_ex_menu of section %d [%s]\n", p_section->sid, p_section->sname); |
|
log_common("Loaded gen_ex_menu of section %d [%s]\n", p_section->sid, p_section->sname); |
|
|
#endif |
|
| 177 |
} |
} |
| 178 |
} |
} |
| 179 |
|
|
| 864 |
return 0; |
return 0; |
| 865 |
} |
} |
| 866 |
|
|
| 867 |
int query_section_articles(SECTION_LIST *p_section, int page_id, ARTICLE *p_articles[], |
int query_section_articles(SECTION_LIST *p_section, int page_id, const ARTICLE *p_articles[], |
| 868 |
int *p_article_count, int *p_page_count, int *p_ontop_start_offset) |
int *p_article_count, int *p_page_count, int *p_ontop_start_offset) |
| 869 |
{ |
{ |
| 870 |
ARTICLE *p_article; |
ARTICLE *p_article; |
| 895 |
} |
} |
| 896 |
else if (page_id < 0 || page_id >= *p_page_count) |
else if (page_id < 0 || page_id >= *p_page_count) |
| 897 |
{ |
{ |
| 898 |
#ifdef _DEBUG |
log_debug("Invalid page_id=%d, not in range [0, %d)\n", page_id, *p_page_count); |
|
log_error("Invalid page_id=%d, not in range [0, %d)\n", page_id, *p_page_count); |
|
|
#endif |
|
| 899 |
ret = -3; |
ret = -3; |
| 900 |
} |
} |
| 901 |
else |
else |