diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-06 16:49:31 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-06 16:49:31 +0000 |
commit | edfb46dd144a27e1f91f7e06e63dd5c5de5459f3 (patch) | |
tree | 6bc3bd3212e93ebb4258b9330056c1181757b2d0 /perllib | |
parent | 48530edad65acaaab9e08592f6df33f4f7f18916 (diff) |
Need to get 0 if sent.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index 36389868e..57181887f 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -196,7 +196,7 @@ sub admin { my @all = (@children, $body->id); my $order = $c->req->params->{o} || 'created'; - my $dir = $c->req->params->{d} || 1; + my $dir = defined $c->req->params->{d} ? $c->req->params->{d} : 1; $c->stash->{order} = $order; $c->stash->{dir} = $dir; $order .= ' desc' if $dir; |