aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2007-03-09 15:24:34 +0000
committermatthew <matthew>2007-03-09 15:24:34 +0000
commit0d44f1c3607809b56e0d1d14573bf62632268c4d (patch)
treee58672bc882b6168a6b65be5eae0819e2ffb51e6
parent4e590a32e7c62ca59cee64b6c03b3d1c15eb2cdb (diff)
do() returns 0E0 if it updates no rows successfully.
-rwxr-xr-xweb-admin/index.cgi6
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