summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-13 12:16:57 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-13 12:16:57 +0000
commit892f6a866c149b3460d8c45a03706659d269129b (patch)
treeb506b1ae3a336f268123b88674343d49ec0044e9 /lib
parent444f1107fd8bb195324c960c384875ab2e0bbc12 (diff)
Added an SQL script to initialize the database needed to run the site, and some minor code fixes
git-svn-id: svn://vndb.org/vndb@67 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Discussions.pm1
-rw-r--r--lib/global.pl1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Discussions.pm b/lib/VNDB/Discussions.pm
index 6f47aa63..4c015357 100644
--- a/lib/VNDB/Discussions.pm
+++ b/lib/VNDB/Discussions.pm
@@ -145,6 +145,7 @@ sub TTag {
my $self = shift;
my $tag = shift;
my($type, $iid) = ($1, $2||0) if $tag =~ /^([a-z]{1,2})([0-9]*)$/;
+ return $self->ResNotFound if !$type;
my $f = $self->FormCheck(
{ name => 'p', required => 0, default => 1, template => 'int' },
diff --git a/lib/global.pl b/lib/global.pl
index 999e082a..353ffb6d 100644
--- a/lib/global.pl
+++ b/lib/global.pl
@@ -50,7 +50,6 @@ our $DTAGS = {
an => 'Announcements', # 0 - usage restricted to boardmods
db => 'VNDB Discussions', # 0
v => 'Visual novels', # vid
- #r => 'Releases', # rid
p => 'Producers', # pid
u => 'Users', # uid
};