This commit is contained in:
Christophe Battarel 2021-06-29 15:52:50 +02:00
parent d423e47d3b
commit c8f55907eb
2 changed files with 5 additions and 7 deletions

View File

@ -565,11 +565,9 @@ if ($action == 'confirm_generateinter') {
if ($interToUse) { if ($interToUse) {
$tmpinter->fetch($interToUse); $tmpinter->fetch($interToUse);
} } else {
else {
$result = $tmpinter->create($user); $result = $tmpinter->create($user);
if ($result <= 0) if ($result <= 0) {
{
$error++; $error++;
setEventMessages($tmpinter->error, $tmpinter->errors, 'errors'); setEventMessages($tmpinter->error, $tmpinter->errors, 'errors');
} }