[Koha-cvs] koha ISBDdetail.pl [rel_2_2]
Henri-Damien LAURENT
laurenthdl at alinto.com
Mon Jul 16 17:19:28 CEST 2007
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Henri-Damien LAURENT <hdl> 07/07/16 15:19:28
Modified files:
. : ISBDdetail.pl
Log message:
Bug Fixing... If userenv was not defined, threw an error 500
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/ISBDdetail.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.4.2.8&r2=1.4.2.9
Patches:
Index: ISBDdetail.pl
===================================================================
RCS file: /sources/koha/koha/Attic/ISBDdetail.pl,v
retrieving revision 1.4.2.8
retrieving revision 1.4.2.9
diff -u -b -r1.4.2.8 -r1.4.2.9
--- ISBDdetail.pl 12 Apr 2007 13:05:13 -0000 1.4.2.8
+++ ISBDdetail.pl 16 Jul 2007 15:19:27 -0000 1.4.2.9
@@ -71,7 +71,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||(1 ||(C4::Context->userenv && C4::Context->userenv->{flags} eq "1")));
my $ISBD = C4::Context->preference('ISBD');
# my @blocs = split /\@/,$ISBD;
# my @fields = $record->fields();
More information about the Koha-cvs
mailing list