]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp
Ticket 37. The time_t currentTime parameter added in
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store_users.cpp
index 1ab5d0e8c2c806e28974c30065975727efc9bfa4..519074b131707887647048d61e5b96fac8b8a657 100644 (file)
@@ -565,7 +565,7 @@ if (PQresultStatus(result) != PGRES_COMMAND_OK)
 
 PQclear(result);
 
-if (SaveUserServices(uid, conf.services))
+if (SaveUserServices(uid, conf.service))
     {
     printfd(__FILE__, "POSTGRESQL_STORE::SaveUserConf(): 'Failed to save user's services'\n");
     if (RollbackTransaction())
@@ -884,7 +884,7 @@ tuples = PQntuples(result);
 
 for (int i = 0; i < tuples; ++i)
     {
-    conf->services.push_back(PQgetvalue(result, i, 0));
+    conf->service.push_back(PQgetvalue(result, i, 0));
     }
 
 PQclear(result);