From 6c3580117392c48e9a7d0eee2f8325446cefc516 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Feb 2010 14:10:16 +0000 Subject: [PATCH] * Shut up a harmless warning about an uninitialised variable. --- src/lib/Hydra/Base/Controller/ListBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Base/Controller/ListBuilds.pm b/src/lib/Hydra/Base/Controller/ListBuilds.pm index e0aae5ab..5e5dd8cc 100644 --- a/src/lib/Hydra/Base/Controller/ListBuilds.pm +++ b/src/lib/Hydra/Base/Controller/ListBuilds.pm @@ -49,7 +49,7 @@ sub errors : Chained('get_builds') PathPart Args(0) { sub all : Chained('get_builds') PathPart { my ($self, $c) = @_; - my $page = int($c->req->param('page')) || 1; + my $page = int($c->req->param('page') || "1") || 1; my $resultsPerPage = 20;