[Koha-cvs] koha/C4/Circulation Circ2.pm [rel_2_2]

paul poulain paul at koha-fr.org
Wed Jun 14 17:38:59 CEST 2006


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	paul poulain <tipaul>	06/06/14 15:38:58

Modified files:
	C4/Circulation : Circ2.pm 

Log message:
	changing a check (ge instead of >=), to avoid a warning

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Circulation/Circ2.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.87.2.14&r2=1.87.2.15

Patches:
Index: Circ2.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.87.2.14
retrieving revision 1.87.2.15
diff -u -b -r1.87.2.14 -r1.87.2.15
--- Circ2.pm	13 Apr 2006 06:25:11 -0000	1.87.2.14
+++ Circ2.pm	14 Jun 2006 15:38:58 -0000	1.87.2.15
@@ -3,7 +3,7 @@
 
 package C4::Circulation::Circ2;
 
-# $Id: Circ2.pm,v 1.87.2.14 2006/04/13 06:25:11 kados Exp $
+# $Id: Circ2.pm,v 1.87.2.15 2006/06/14 15:38:58 tipaul Exp $
 
 #package to deal with Returns
 #written 3/11/99 by olwen at katipo.co.nz
@@ -666,7 +666,7 @@
 
 	$sth->execute("*", $type, "");
 	my $result = $sth->fetchrow_hashref;
-	if (defined($result) && $result->{maxissueqty}>=0) {
+	if (defined($result) && $result->{maxissueqty} ge 0) {
 		$sth2->execute($borrower->{'borrowernumber'}, "%$type%");
 		my $alreadyissued = $sth2->fetchrow;
 		return ("f $alreadyissued / ".($result->{maxissueqty}+0)) if ($result->{'maxissueqty'} <= $alreadyissued);





More information about the Koha-cvs mailing list