summaryrefslogtreecommitdiffstats
path: root/blog
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-10 13:36:45 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-10 13:36:45 +0800
commit9e21f826bcb2573e94c7d73e9f20c66cb33be9d4 (patch)
treeeed893dc5b7e9f8ad292a8bd7e41e32d766a7f41 /blog
parent2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4 (diff)
downloadpttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.tar
pttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.tar.gz
pttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.tar.bz2
pttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.tar.lz
pttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.tar.xz
pttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.tar.zst
pttbbs-9e21f826bcb2573e94c7d73e9f20c66cb33be9d4.zip
fix bug in searching a not exist board
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1521 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'blog')
-rwxr-xr-xblog/blog.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/blog/blog.pl b/blog/blog.pl
index 49b30fd8..8126bc6f 100755
--- a/blog/blog.pl
+++ b/blog/blog.pl
@@ -36,7 +36,8 @@ sub main
my($sth);
$sth = $dbh->prepare("select k from counter where k='$brdname'");
$sth->execute();
- $brdname = $sth->fetchrow_hashref()->{k};
+ $brdname = (($sth = $sth->fetchrow_hashref()) ?
+ $sth->{k} : 'Blog');
});
return redirect("/blog.pl/$brdname/");
}