summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-10 22:01:05 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-10 22:01:05 +0000
commitef0945410b643c41c7503e033adc624e146cc1ca (patch)
tree6a8467f2534fb880f34b3a0235f87713548d80f7
parent6941fc617a19c9eb30a2fae609e82cc5eb3dbe5d (diff)
Avoid perl warning.
-rwxr-xr-xfrikanalen/cgi-bin/frontpage.cgi2
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=\"&gt;\"> 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=\"&gt;\"> $cat->{'Name'}</li>";
} else {
print "<li><a href=\"$scripturl\?category=$cat->{'Name'};$sor\" >$cat->{'Name'}</a></li>";