[Koha-cvs] koha/C4 Log.pm

paul poulain paul at koha-fr.org
Fri Apr 14 11:33:56 CEST 2006


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch: 	
Changes by:	paul poulain <tipaul at savannah.gnu.org>	06/04/14 09:33:56

Modified files:
	C4             : Log.pm 

Log message:
	defaulting usernumber to '' (root login)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/C4/Log.pm.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: koha/C4/Log.pm
diff -u koha/C4/Log.pm:1.4 koha/C4/Log.pm:1.5
--- koha/C4/Log.pm:1.4	Mon Aug  8 09:11:54 2005
+++ koha/C4/Log.pm	Fri Apr 14 09:33:56 2006
@@ -62,6 +62,7 @@
 #'
 sub logaction{
   my ($usernumber,$modulename, $actionname, $objectnumber, $infos)=@_;
+	$usernumber='' unless $usernumber;
 	my $dbh = C4::Context->dbh;
 	my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info) values (now(),?,?,?,?,?)");
 	$sth->execute($usernumber,$modulename,$actionname,$objectnumber,$infos);





More information about the Koha-cvs mailing list