[Koha-cvs] koha MARCdetail.pl [rel_2_2]

Joshua Ferraro jmf at kados.org
Thu Dec 7 16:31:59 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Joshua Ferraro <kados>	06/12/07 15:31:59

Modified files:
	.              : MARCdetail.pl 

Log message:
	check that userenv exists before checking its value

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/MARCdetail.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.25.2.24&r2=1.25.2.25

Patches:
Index: MARCdetail.pl
===================================================================
RCS file: /sources/koha/koha/Attic/MARCdetail.pl,v
retrieving revision 1.25.2.24
retrieving revision 1.25.2.25
diff -u -b -r1.25.2.24 -r1.25.2.25
--- MARCdetail.pl	31 Oct 2006 14:33:32 -0000	1.25.2.24
+++ MARCdetail.pl	7 Dec 2006 15:31:59 -0000	1.25.2.25
@@ -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