Update adherent.class.php

This commit is contained in:
Laurent Destailleur 2019-02-03 19:24:18 +01:00 committed by GitHub
parent bfc7265cbc
commit 62d677118d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -600,7 +600,7 @@ class Adherent extends CommonObject
$error++; $error++;
} }
} }
elseif(!empty($lthirdparty->error)) elseif ($result < 0)
{ {
$this->error=$lthirdparty->error; $this->error=$lthirdparty->error;
$error++; $error++;
@ -689,7 +689,6 @@ class Adherent extends CommonObject
$this->db->rollback(); $this->db->rollback();
return -1; return -1;
} }
} }
/** /**