From 7563ce50d64c250788698f89f68f35fe174f04a1 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 4 Feb 2011 13:52:06 +0000 Subject: Fixed wrong conditional. --- server/src/pracrodaopgsql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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 { -- cgit v1.2.3