Added default case to catch illegal values resulting from over-translation

This commit is contained in:
acli 2003-02-08 21:49:55 +00:00
parent 84a21924d0
commit 308c8aa7b6
1 changed files with 10 additions and 1 deletions

View File

@ -3,8 +3,11 @@
#simple script to provide basic redirection
#used by members section
# Allows a single script to handle the addition of either an adult
# or a corporate member
# Copyright 2000-2002 Katipo Communications
# Copyright 2000-2003 Katipo Communications
#
# This file is part of Koha.
#
@ -35,3 +38,9 @@ if ($choice eq 'adult'){
if ($choice eq 'organisation'){
print $input->redirect("/cgi-bin/koha/imemberentry.pl?type=Add");
}
print <<EOF;
Content-Type: text/plain
Internal error: Invalid chooseform parameter "$choice"
EOF