[Koha-cvs] koha/C4 Auth.pm [rel_3_0]

Bruno Toumi btoumi at ouestprovence.fr
Wed Nov 29 18:24:56 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Bruno Toumi <btoumi>	06/11/29 17:24:56

Modified files:
	C4             : Auth.pm 

Log message:
	bug fix:: accept access to opac if you are not logged 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Auth.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.54.2.15&r2=1.54.2.16

Patches:
Index: Auth.pm
===================================================================
RCS file: /sources/koha/koha/C4/Auth.pm,v
retrieving revision 1.54.2.15
retrieving revision 1.54.2.16
diff -u -b -r1.54.2.15 -r1.54.2.16
--- Auth.pm	28 Nov 2006 16:13:57 -0000	1.54.2.15
+++ Auth.pm	29 Nov 2006 17:24:56 -0000	1.54.2.16
@@ -36,7 +36,7 @@
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 
 # set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.54.2.15 $' =~ /\d+/g;
+$VERSION = do { my @v = '$Revision: 1.54.2.16 $' =~ /\d+/g;
     shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v );
 };
 
@@ -257,7 +257,9 @@
             AmazonContent => "" . C4::Context->preference("AmazonContent"),
             LibraryName   => "" . C4::Context->preference("LibraryName"),
             LibraryNameTitle   => "" . $LibraryNameTitle,
-            LoginBranchname    => C4::Context->userenv->{"branchname"},
+            LoginBranchname    => C4::Context->userenv
+	   ?C4::Context->userenv->{"branchname"}
+		:"", 
             OpacPasswordChange => C4::Context->preference("OpacPasswordChange"),
             opacreadinghistory => C4::Context->preference("opacreadinghistory"),
             opacuserjs         => C4::Context->preference("opacuserjs"),





More information about the Koha-cvs mailing list