diff --git a/soap/stip.soap.php b/soap/stip.soap.php index 84f351bd0..8ce88298f 100644 --- a/soap/stip.soap.php +++ b/soap/stip.soap.php @@ -252,8 +252,12 @@ function SendStipendienbezieherStipError($parameters) $log->beschreibung = "Stip Error"; $log->save(true); - $mail = new mail(MAIL_ADMIN, 'vilesci@'.DOMAIN, 'STIP - Error', $xmlData); - $mail->send(); + //1=successful; 2=incomplete xml document; 3=incomplete processing; 4=system-error + if($parameters->errorReport->ErrorStatusCode!=1) + { + $mail = new mail(MAIL_ADMIN, 'vilesci@'.DOMAIN, 'STIP - Error', $xmlData); + $mail->send(); + } } ?> diff --git a/soap/stip_client.php b/soap/stip_client.php index bc09b3e77..7de745e51 100644 --- a/soap/stip_client.php +++ b/soap/stip_client.php @@ -34,7 +34,8 @@ $db = new basis_db();