diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-10 22:01:05 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-10 22:01:05 +0000 |
commit | ef0945410b643c41c7503e033adc624e146cc1ca (patch) | |
tree | 6a8467f2534fb880f34b3a0235f87713548d80f7 | |
parent | 6941fc617a19c9eb30a2fae609e82cc5eb3dbe5d (diff) |
Avoid perl warning.
-rwxr-xr-x | frikanalen/cgi-bin/frontpage.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frikanalen/cgi-bin/frontpage.cgi b/frikanalen/cgi-bin/frontpage.cgi index 5c76766..b57c187 100755 --- a/frikanalen/cgi-bin/frontpage.cgi +++ b/frikanalen/cgi-bin/frontpage.cgi @@ -168,7 +168,7 @@ EOF my $all_cat = $category ? "<ul><li><a href=\"$scripturl?$sor\">Alle</a></li>" : "<ul><li class=\"active\"><img src=\"bullet.png\" alt=\">\"> Alle</li>"; print "$all_cat"; foreach my $cat (@{$categories}) { - if ($cat->{'Name'} eq $category) { + if (defined $category && $cat->{'Name'} eq $category) { print "<li class=\"active\"><img src=\"bullet.png\" alt=\">\"> $cat->{'Name'}</li>"; } else { print "<li><a href=\"$scripturl\?category=$cat->{'Name'};$sor\" >$cat->{'Name'}</a></li>"; |