From fce45b93a2fd608b995124528a54ab47ee47a06f Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Thu, 9 Jun 2011 23:00:00 +0000 Subject: [PATCH] fixed: users: flag 'super_user' was not correctly read ftom the database git-svn-id: svn://ttmath.org/publicrep/winix/trunk@736 e52654a7-88a9-db11-a3e9-0013d4bc506e --- db/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.cpp b/db/db.cpp index 191ae4e..dfe7737 100755 --- a/db/db.cpp +++ b/db/db.cpp @@ -1419,7 +1419,7 @@ void Db::GetUsers(UGContainer & user_tab) if( u.id != last_id ) { u.name = AssertValueWide(r, i, cname); - u.super_user = static_cast(AssertValueInt(r, i, csuper_user)); + u.super_user = AssertValueBool(r, i, csuper_user); u.email = AssertValueWide(r, i, cemail); u.notify = AssertValueInt(r, i, cnotify);