X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fedit_user_form.ml;h=ddd7ed1c260916849726b6ef884e46c7b9748bf7;hb=da90d13b12890069f0bade66b6676daf80b41bfd;hp=d8eb82afabf56bda4d75aa7aaad69755ba6f0bb4;hpb=6d64033b48791cf96d2d91b9fe24674c75fd0f67;p=cocanwiki.git diff --git a/scripts/edit_user_form.ml b/scripts/edit_user_form.ml index d8eb82a..ddd7ed1 100644 --- a/scripts/edit_user_form.ml +++ b/scripts/edit_user_form.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: edit_user_form.ml,v 1.7 2004/10/11 14:13:04 rich Exp $ + * $Id: edit_user_form.ml,v 1.8 2005/11/23 11:32:13 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,9 +38,9 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = "select u.name, u.email, u.registration_date, u.can_edit, u.can_manage_users, u.can_manage_contacts, u.can_manage_site, u.can_edit_global_css, u.can_import_mail, - (select count(*) from pages where logged_user = u.id), + (select count(*) from pages where logged_user = u.id)::int4, (select count(*) from pages - where logged_user = u.id and url_deleted is null) + where logged_user = u.id and url_deleted is null)::int4 from users u where u.hostid = ? and u.id = ?" in sth#execute [`Int hostid; `Int userid];