[Koha-cvs] koha MARCdetail.pl [R_2-2-7-1]
Antoine Farnault
antoine at koha-fr.org
Mon Feb 12 10:35:16 CET 2007
CVSROOT: /sources/koha
Module name: koha
Branch: R_2-2-7-1
Changes by: Antoine Farnault <toins> 07/02/12 09:35:16
Modified files:
. : MARCdetail.pl
Log message:
Commiting BUG FIX for 2.2.7.1.
Previous log was :
check that userenv exists before checking its value.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/MARCdetail.pl?cvsroot=koha&only_with_tag=R_2-2-7-1&r1=1.25.2.24&r2=1.25.2.24.2.1
Patches:
Index: MARCdetail.pl
===================================================================
RCS file: /sources/koha/koha/Attic/MARCdetail.pl,v
retrieving revision 1.25.2.24
retrieving revision 1.25.2.24.2.1
diff -u -b -r1.25.2.24 -r1.25.2.24.2.1
--- MARCdetail.pl 31 Oct 2006 14:33:32 -0000 1.25.2.24
+++ MARCdetail.pl 12 Feb 2007 09:35:16 -0000 1.25.2.24.2.1
@@ -87,7 +87,7 @@
});
my $val=count_items($record);
-$template->param("candelete"=>1) if ($val==0||C4::Context->userenv->{flags} eq "1");
+$template->param("candelete"=>1) if ($val==0||(C4::Context->userenv && C4::Context->userenv->{flags} eq "1"));
#Getting the list of all frameworks
my $queryfwk =$dbh->prepare("select frameworktext, frameworkcode from biblio_framework");
More information about the Koha-cvs
mailing list