diff options
author | matthew <matthew> | 2007-03-09 15:24:34 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-03-09 15:24:34 +0000 |
commit | 0d44f1c3607809b56e0d1d14573bf62632268c4d (patch) | |
tree | e58672bc882b6168a6b65be5eae0819e2ffb51e6 | |
parent | 4e590a32e7c62ca59cee64b6c03b3d1c15eb2cdb (diff) |
do() returns 0E0 if it updates no rows successfully.
-rwxr-xr-x | web-admin/index.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi index 25ece020d..0d0d36ca1 100755 --- a/web-admin/index.cgi +++ b/web-admin/index.cgi @@ -7,10 +7,10 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: index.cgi,v 1.7 2007-03-09 15:17:24 matthew Exp $ +# $Id: index.cgi,v 1.8 2007-03-09 15:24:34 matthew Exp $ # -my $rcsid = ''; $rcsid .= '$Id: index.cgi,v 1.7 2007-03-09 15:17:24 matthew Exp $'; +my $rcsid = ''; $rcsid .= '$Id: index.cgi,v 1.8 2007-03-09 15:24:34 matthew Exp $'; use strict; @@ -208,7 +208,7 @@ sub do_council_edit ($$) { ($q->remote_user() || "*unknown*"), $q->param('note'), $area_id ); - if (!$update) { + unless ($update > 0) { dbh()->do('insert into contacts (area_id, email, editor, whenedited, note, confirmed) values |