diff options
author | matthew <matthew> | 2008-10-11 12:40:38 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-10-11 12:40:38 +0000 |
commit | 4acf5fe89c45c56814b242cb53ec9103a216cfd3 (patch) | |
tree | 0ff7c8413e839b169f22d22da5583ac11c624b49 | |
parent | 0971cbbf7cd2c9970269b9c1d519ab520df3ad64 (diff) |
Warnfix.
-rwxr-xr-x | web/confirm.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/confirm.cgi b/web/confirm.cgi index 8202ffa6c..0d787eb07 100755 --- a/web/confirm.cgi +++ b/web/confirm.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: confirm.cgi,v 1.46 2008-10-09 14:20:54 matthew Exp $ +# $Id: confirm.cgi,v 1.47 2008-10-11 12:40:38 matthew Exp $ use strict; use Standard; @@ -199,7 +199,7 @@ sub add_questionnaire { } my ($problem_id, $email, $name) = dbh()->selectrow_array("select problem_id, email, name from comment where id=?", {}, $id); - my $reported = $q->param('reported'); + my $reported = $q->param('reported') || ''; $reported = $reported eq 'Yes' ? 't' : ($reported eq 'No' ? 'f' : undef); return ask_questionnaire($token) unless $reported; my $already = dbh()->selectrow_array("select id from questionnaire |