From b4639ea1dac0a80e96843092910eb900fc330d77 Mon Sep 17 00:00:00 2001 From: dubost Date: Thu, 10 Nov 2005 20:47:09 +0100 Subject: [PATCH] Petit bug Corrig par stphane darcs-hash:20051110194709-c3cc4-02e2acce5f28d21357d40af37260f233b76d0a8c.gz --- gestion/ldap_crans.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 02d7f9dc..82fa0d0a 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1199,7 +1199,12 @@ class base_proprietaire(base_classes_crans): (p pour le paiement, c pour la carte Retourne une chaine contenant p ou c ou les deux """ - actuel = self._data.get('controle',[''])[0] + actuel = self._data.get('controle',['']) + if not actuel: + actuel = '' + else: + actuel = actuel[0] + if new==None: return actuel