Skip to content

Commit

Permalink
Fix up perl errors #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Nov 29, 2017
1 parent 5c3e787 commit 617f050
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gitweb.cgi.source
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ my %allowed_options = (
);

our @extra_options = $cgi->param('opt');
if (defined @extra_options) {
if (@extra_options) {
foreach my $opt (@extra_options) {
if (not exists $allowed_options{$opt}) {
die_error(400, "Invalid option parameter");
Expand Down
8 changes: 4 additions & 4 deletions gitweb.cgi.source.new
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ sub git_summary {
print "</table\n>";

my $taglist = git_read_refs("refs/tags");
if (defined @$taglist) {
if (@$taglist) {
print "<div>\n" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=tags"), -class => "title"}, "tags") .
"</div>\n";
Expand Down Expand Up @@ -1243,7 +1243,7 @@ sub git_summary {
}

my $headlist = git_read_refs("refs/heads");
if (defined @$headlist) {
if (@$headlist) {
print "<div>\n" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=heads"), -class => "title"}, "heads") .
"</div>\n";
Expand Down Expand Up @@ -1321,7 +1321,7 @@ sub git_tags {
"</div>\n";
print "<table cellspacing=\"0\">\n";
my $alternate = 0;
if (defined @$taglist) {
if (@$taglist) {
foreach my $entry (@$taglist) {
my %tag = %$entry;
my $comment_lines = $tag{'comment'};
Expand Down Expand Up @@ -1373,7 +1373,7 @@ sub git_heads {
"</div>\n";
print "<table cellspacing=\"0\">\n";
my $alternate = 0;
if (defined @$taglist) {
if (@$taglist) {
foreach my $entry (@$taglist) {
my %tag = %$entry;
if ($alternate) {
Expand Down

0 comments on commit 617f050

Please sign in to comment.