diff --git a/src/db_manager.cpp b/src/db_manager.cpp index bd2ba32..217ca25 100644 --- a/src/db_manager.cpp +++ b/src/db_manager.cpp @@ -194,7 +194,7 @@ bool DBManager::invalidateBan(int id) ban_exists.addBindValue(id); ban_exists.exec(); - if (ban_exists.first()) + if (!ban_exists.first()) return false; QSqlQuery query;