From acc2c30eb8d9b3f0ad34069d118a923cb4c30e21 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 Nov 2008 18:54:09 +0000 Subject: [PATCH] --- src/Hydra/lib/Hydra/Controller/Root.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hydra/lib/Hydra/Controller/Root.pm b/src/Hydra/lib/Hydra/Controller/Root.pm index f7dba4cd..55c63dd3 100644 --- a/src/Hydra/lib/Hydra/Controller/Root.pm +++ b/src/Hydra/lib/Hydra/Controller/Root.pm @@ -232,7 +232,7 @@ sub getRelease { foreach my $job (@{$c->stash->{jobs}}) { my $thisBuild; - if ($job->isprimary == 1) { + if ($job->isprimary) { $thisBuild = $primaryBuild; } else { # Find a build of this job that had the primary build @@ -305,7 +305,7 @@ sub releases :Local { my ($project, $releaseSet, $primaryJob) = getReleaseSet($c, $projectName, $releaseSetName); - if ($subcommand ne "") { + if (defined $subcommand && $subcommand ne "") { return requireLogin($c) if !$c->user_exists;