Delete on invalid

This commit is contained in:
Michael 2022-05-24 20:02:54 +00:00
parent 9da0e637a3
commit d3709d8497
2 changed files with 12 additions and 6 deletions

View file

@ -146,7 +146,8 @@ HELP;
}
if ($quit_on_invalid && $fields['photo'] == '') {
echo ' ' . $this->l10n->t('Quit') . "\n";
echo ' ' . $this->l10n->t('Quit on invalid photo %d', $contact['avatar']) . "\n";
Photo::delete(['resource-id' => $resourceid]);
return;
}