Loading src/UnicaenSiham/Service/Siham.php +12 −3 Original line number Diff line number Diff line Loading @@ -891,9 +891,18 @@ class Siham $exception = new SihamException($messageErreur, 0); $this->sendDebug('WS PECWebService / METHOD PriseEnChargeAgent', $exception); throw $exception; } elseif ($result->return->statut == 'MAJ OK' && !empty($result->return->matricule)) { } elseif ($result->return->statut == 'MAJ OK') { if(!empty($result->return->matricule)) { return $result->return->matricule; } else { } else{ $exception = new SihamException('Matricule de l\'agent non généré lors de la prise en charge', 0); $this->sendDebug('WS PECWebService / METHOD PriseEnChargeAgent', $exception); throw $exception; } } else { $exception = new SihamException('Erreur non identifié, veuillez vous rapprocher du support informatique', 0); $this->sendDebug('WS PECWebService / METHOD PriseEnChargeAgent', $exception); throw $exception; Loading Loading
src/UnicaenSiham/Service/Siham.php +12 −3 Original line number Diff line number Diff line Loading @@ -891,9 +891,18 @@ class Siham $exception = new SihamException($messageErreur, 0); $this->sendDebug('WS PECWebService / METHOD PriseEnChargeAgent', $exception); throw $exception; } elseif ($result->return->statut == 'MAJ OK' && !empty($result->return->matricule)) { } elseif ($result->return->statut == 'MAJ OK') { if(!empty($result->return->matricule)) { return $result->return->matricule; } else { } else{ $exception = new SihamException('Matricule de l\'agent non généré lors de la prise en charge', 0); $this->sendDebug('WS PECWebService / METHOD PriseEnChargeAgent', $exception); throw $exception; } } else { $exception = new SihamException('Erreur non identifié, veuillez vous rapprocher du support informatique', 0); $this->sendDebug('WS PECWebService / METHOD PriseEnChargeAgent', $exception); throw $exception; Loading