liquid_feedback_core

diff lf_update.c @ 184:af3d208e81be

Member deactivation based on last_activity instead of last_login
author jbe
date Fri Jul 29 20:26:45 2011 +0200 (2011-07-29)
parents ed2f94a397cd
children 2a6984869ba3
line diff
     1.1 --- a/lf_update.c	Fri Jul 29 16:04:17 2011 +0200
     1.2 +++ b/lf_update.c	Fri Jul 29 20:26:45 2011 +0200
     1.3 @@ -54,16 +54,16 @@
     1.4      return 1;
     1.5    }
     1.6  
     1.7 -  // check last login:
     1.8 -  status = PQexec(db, "SELECT \"check_last_login\"()");
     1.9 +  // check member activity:
    1.10 +  status = PQexec(db, "SELECT \"check_activity\"()");
    1.11    if (!status) {
    1.12 -    fprintf(stderr, "Error in pqlib while sending SQL command checking last logins\n");
    1.13 +    fprintf(stderr, "Error in pqlib while sending SQL command checking member activity\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 checking last logins:\n%s", PQresultErrorMessage(status));
    1.20 +    fprintf(stderr, "Error while executing SQL command checking member activity:\n%s", PQresultErrorMessage(status));
    1.21      err = 1;
    1.22      PQclear(status);
    1.23    } else {

Impressum / About Us