aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Tokens.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-08-18 16:44:29 +0100
committerStruan Donald <struan@exo.org.uk>2011-08-18 16:44:29 +0100
commit9d893420aa44d8b42eb59325cd3a328b16bf8250 (patch)
treefa5e6d6035c2e2eea31115e08f0254a6822909a8 /perllib/FixMyStreet/App/Controller/Tokens.pm
parent120f353b1793d5033a5f7c1a922f7da255307805 (diff)
avoid warnings about uninitalized values
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Tokens.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Tokens.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm
index 1ebf35652..10f994d9f 100644
--- a/perllib/FixMyStreet/App/Controller/Tokens.pm
+++ b/perllib/FixMyStreet/App/Controller/Tokens.pm
@@ -75,7 +75,7 @@ sub confirm_problem : Path('/P') {
$c->authenticate( { email => $problem->user->email }, 'no_password' );
$c->set_session_cookie_expire(0);
- if ( FixMyStreet::DB::Result::Problem->visible_states()->{$old_state} == 1 ) {
+ if ( FixMyStreet::DB::Result::Problem->visible_states()->{$old_state} ) {
my $report_uri = $c->uri_for( '/report', $problem->id );
$c->res->redirect($report_uri);
}