diff --git a/library/Class/Systeme/PergameService.php b/library/Class/Systeme/PergameService.php
index 4ca210112e785e766a994d16b5c2a73b8b4f9a0c..2e7f6cb5284a4182f5bb0b6b60aa2d9d307832f8 100644
--- a/library/Class/Systeme/PergameService.php
+++ b/library/Class/Systeme/PergameService.php
@@ -212,8 +212,8 @@ class Class_Systeme_PergameService
 		// Controle connexion
 		if(!$this->user->ID_USER) $ret["erreur"]="Vous devez être connecté pour réserver un document";
 		else if(!$this->user->IDABON) $ret["erreur"]="Vous devez être connecté en tant qu'abonné pour réserver un document";
+		
 		// Lire exemplaire et notice
-
 		if(!$exemplaire) return array("erreur"=>"Une erreur s'est produite lors de la lecture de la notice.");
 
 		$notice= $exemplaire->getNotice();
@@ -251,11 +251,13 @@ class Class_Systeme_PergameService
 		}
 		
 		// Ecrire enreg reservation
+		if(!$id_bib) $id_bib=1;
 		$req="insert into reservations(ID_SITE,ID_PERGAME,IDABON,ORDREABON,DATE_RESA,SUPPORT,ID_NOTICE_ORIGINE)";
 		$req.="Values($id_bib,0,$id_abon,$ordre_abon,'".date("Y-m-d")."',$support,'$id_origine')";
 		sqlExecute($req);
 
 		// Ecrire enreg transaction
+		if(!$code_annexe) $code_annexe=1;
 		$date=date("Y-m-d H:i:s");
 		$heure=date("H");
 		$this->ecrireTransaction(6,array($id_abon,$ordre_abon,$support,$id_origine,$date,$code_annexe,$heure));
@@ -309,7 +311,7 @@ class Class_Systeme_PergameService
 		// Controle si le doc est réservé
 		if($regles["Interdire_si_reservation"]==1)
 		{
-			$controle=fetchOne("Select Count(*) From reservations Where ID_NOTICE_ORIGINE=".$pret["ID_NOTICE_ORIGINE"]." and IDABON='".$pret["ID_ABON"]."'");
+			$controle=fetchOne("Select Count(*) From reservations Where ID_NOTICE_ORIGINE=".$pret["ID_NOTICE_ORIGINE"]);
 			if($controle>0) return array('statut'=>0,"erreur"=>"Le prêt n'a pas pu être prolongé car il est réservé.".$complement_msg);
 		}