(bug fix): This was always displaying the OPAC results page. Fixed by

replacing an assignment with a string comparison.
This commit is contained in:
arensb 2002-10-16 12:37:12 +00:00
parent add7710b2d
commit d8cd705243

View file

@ -33,7 +33,7 @@ my $type=$query->param('type');
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, ($type eq 'opac') ? (1) : (0));
my $biblionumber=$query->param('bib');
my $type='intra';
my $type='intra'; # FIXME - There's already a $type in this scope
# change back when ive fixed request.pl
@ -71,7 +71,7 @@ my $startfrom=$query->param('startfrom');
($startfrom) || ($startfrom=0);
my $template;
if ($type='opac') {
if ($type eq 'opac') {
$template = gettemplate("catalogue/detail-opac.tmpl");
} else {
$template=gettemplate("catalogue/detail.tmpl");