summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {