liquid_feedback_core
diff lf_update.c @ 104:0d03c57ebae5
Introduced "system_setting" table with "member_ttl" setting
| author | jbe |
|---|---|
| date | Mon Jan 24 17:30:18 2011 +0100 (2011-01-24) |
| parents | bc8aa59b0945 |
| children | ed2f94a397cd |
line diff
1.1 --- a/lf_update.c Sat Jan 22 20:09:18 2011 +0100 1.2 +++ b/lf_update.c Mon Jan 24 17:30:18 2011 +0100 1.3 @@ -70,16 +70,16 @@ 1.4 PQclear(status); 1.5 } 1.6 1.7 - // publish last login: 1.8 - status = PQexec(db, "SELECT \"publish_last_login\"()"); 1.9 + // check last login: 1.10 + status = PQexec(db, "SELECT \"check_last_login\"()"); 1.11 if (!status) { 1.12 - fprintf(stderr, "Error in pqlib while sending SQL command publishing last logins\n"); 1.13 + fprintf(stderr, "Error in pqlib while sending SQL command checking last logins\n"); 1.14 err = 1; 1.15 } else if ( 1.16 PQresultStatus(status) != PGRES_COMMAND_OK && 1.17 PQresultStatus(status) != PGRES_TUPLES_OK 1.18 ) { 1.19 - fprintf(stderr, "Error while executing SQL command publishing last logins:\n%s", PQresultErrorMessage(status)); 1.20 + fprintf(stderr, "Error while executing SQL command checking last logins:\n%s", PQresultErrorMessage(status)); 1.21 err = 1; 1.22 PQclear(status); 1.23 } else {