[Koha-cvs] CVS: koha/C4 Stats.pm,1.16,1.17

Jerome Vizcaino plugz at users.sourceforge.net
Fri Jun 20 14:34:50 CEST 2003


Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1:/tmp/cvs-serv9591

Modified Files:
	Stats.pm 
Log Message:

FIX: Incorrect values inserted in database. used '$a' instead of $a


Index: Stats.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Stats.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** Stats.pm	19 May 2003 16:20:52 -0000	1.16
--- Stats.pm	20 Jun 2003 12:34:48 -0000	1.17
***************
*** 83,87 ****
  	my $sth=$dbh->prepare("Insert into statistics (datetime,branch,type,usercode,value,
  					other,itemnumber,itemtype,borrowernumber) values (now(),?,?,?,?,?,?,?,?)");
! 	$sth->execute('$branch','$type','$user','$amount','$other','$itemnum','$itemtype','$borrowernumber');
  	$sth->finish;
  }
--- 83,87 ----
  	my $sth=$dbh->prepare("Insert into statistics (datetime,branch,type,usercode,value,
  					other,itemnumber,itemtype,borrowernumber) values (now(),?,?,?,?,?,?,?,?)");
! 	$sth->execute($branch,$type,$user,$amount,$other,$itemnum,$itemtype,$borrowernumber);
  	$sth->finish;
  }





More information about the Koha-cvs mailing list