diff options
author | matthew <matthew> | 2007-01-30 16:10:06 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-01-30 16:10:06 +0000 |
commit | 31911a584d9d7cf8800ee95203c4bc35c945cca6 (patch) | |
tree | f51c6fbe67a4404f09b3ef91f26ef24bbe3c8f25 /web/index.cgi | |
parent | 7954e5968647b51a7bfd94d7f2f443dbec07fda6 (diff) |
Text tweak; warning fix; style fix.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-x | web/index.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/index.cgi b/web/index.cgi index 545899a8c..bbd4dafe8 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: index.cgi,v 1.59 2007-01-26 22:48:31 matthew Exp $ +# $Id: index.cgi,v 1.60 2007-01-30 16:10:06 matthew Exp $ # TODO # Nothing is done about the update checkboxes - not stored anywhere on anything! @@ -114,7 +114,6 @@ EOF <li>Submit to your council. </ol> -</div> EOF return $out; } @@ -447,8 +446,8 @@ sub display_problem { my @vars = qw(id name email update fixed reopen x y); my %input = map { $_ => $q->param($_) || '' } @vars; my %input_h = map { $_ => $q->param($_) ? ent($q->param($_)) : '' } @vars; - $input{x} += 0; - $input{y} += 0; + $input{x} ||= 0; $input{x} += 0; + $input{y} ||= 0; $input{y} += 0; # Get all information from database my $problem = dbh()->selectrow_arrayref( |