| 37 |
return -1; |
return -1; |
| 38 |
} |
} |
| 39 |
|
|
| 40 |
|
if (uid == 0) |
| 41 |
|
{ |
| 42 |
|
p_view_log->aid_base_cnt = 0; |
| 43 |
|
p_view_log->aid_base = NULL; |
| 44 |
|
|
| 45 |
|
if (!keep_inc) |
| 46 |
|
{ |
| 47 |
|
p_view_log->aid_inc_cnt = 0; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
return 0; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
if ((db = db_open()) == NULL) |
if ((db = db_open()) == NULL) |
| 54 |
{ |
{ |
| 55 |
log_error("article_view_log_load() error: Unable to open DB\n"); |
log_error("article_view_log_load() error: Unable to open DB\n"); |
| 97 |
return 0; |
return 0; |
| 98 |
} |
} |
| 99 |
|
|
| 100 |
int article_view_log_unload(int uid, ARTICLE_VIEW_LOG *p_view_log) |
int article_view_log_unload(ARTICLE_VIEW_LOG *p_view_log) |
| 101 |
{ |
{ |
| 102 |
if (p_view_log == NULL) |
if (p_view_log == NULL) |
| 103 |
{ |
{ |