We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd0a780 commit f05b5c8Copy full SHA for f05b5c8
lib/BackgroundJob/RepairRecipiants.php renamed to lib/BackgroundJob/RepairRecipients.php
@@ -44,13 +44,13 @@ protected function run($argument): void {
44
foreach ($recipients as $recipient) {
45
$id = $recipient['id'];
46
$email = $recipient['email'];
47
- $email = str_replace('\'', '', $email);
+ $email = trim(str_replace('\'', '', $email));
48
$update->setParameter('id', $id, IQueryBuilder::PARAM_STR);
49
$update->setParameter('email', $email, IQueryBuilder::PARAM_STR);
50
$update->executeStatement();
51
}
52
// remove job depending on the result
53
- if ($recipients === null || $recipient === []) {
+ if ($recipients === []) {
54
$this->jobService->remove(RepairRecipients::class);
55
56
0 commit comments