aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-06 16:49:31 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-06 16:49:31 +0000
commitedfb46dd144a27e1f91f7e06e63dd5c5de5459f3 (patch)
tree6bc3bd3212e93ebb4258b9330056c1181757b2d0
parent48530edad65acaaab9e08592f6df33f4f7f18916 (diff)
Need to get 0 if sent.
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm2
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;