X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fdelete_user_form.ml;h=382814ad05a1d6576c245d8564b74efa47c6a267;hb=f33343df3525e01f05ecf80628cd46b6e5841001;hp=f982f1efd5dd0b95a0594773caf9b60400abe57a;hpb=867889b6d04b6381c74974e338672ee02d61920e;p=cocanwiki.git diff --git a/scripts/delete_user_form.ml b/scripts/delete_user_form.ml index f982f1e..382814a 100644 --- a/scripts/delete_user_form.ml +++ b/scripts/delete_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: delete_user_form.ml,v 1.1 2004/09/21 13:01:15 rich Exp $ + * $Id: delete_user_form.ml,v 1.2 2004/09/23 11:56:47 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 @@ -40,7 +40,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ self = | User (id, _, _) when id = userid -> error ~back_button:true ~title:"Delete own account" q "You cannot delete your own user account."; - raise CgiExit + return () | _ -> () in (* Get this user from the database. *)