summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authordeva <deva>2011-02-04 13:52:06 +0000
committerdeva <deva>2011-02-04 13:52:06 +0000
commit7563ce50d64c250788698f89f68f35fe174f04a1 (patch)
tree812736489d1b12ee4576988fa15609ccbeb3a685 /server
parent41dfe02ea86e329bee9137dbdea9a788915b90d3 (diff)
Fixed wrong conditional.
Diffstat (limited to 'server')
-rw-r--r--server/src/pracrodaopgsql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/pracrodaopgsql.cc b/server/src/pracrodaopgsql.cc
index c86797d..b71f8e7 100644
--- a/server/src/pracrodaopgsql.cc
+++ b/server/src/pracrodaopgsql.cc
@@ -515,7 +515,7 @@ void PracroDAOPgsql::setActive(std::string sessionid, bool a)
std::string ts;
try {
pqxx::work W(*conn);
- if(a) {
+ if(a == false) {
ts = "UPDATE commits SET status='idle' WHERE uid="+sessionid+
" AND status='active';";
} else {