From d8cd705243bd68221c8c69c6d07fe41434036150 Mon Sep 17 00:00:00 2001 From: arensb Date: Wed, 16 Oct 2002 12:37:12 +0000 Subject: [PATCH] (bug fix): This was always displaying the OPAC results page. Fixed by replacing an assignment with a string comparison. --- detail.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detail.pl b/detail.pl index e729bb2dc8..b4d48f44c3 100755 --- a/detail.pl +++ b/detail.pl @@ -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"); -- 2.39.2