mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-19 06:46:49 +01:00
* [FIX] Wrong behavior on mail events handling. Thanks to @deajan for the notice. Related #1165
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -185,7 +185,7 @@ final class MailHandler extends Provider implements EventReceiver
|
||||
$configEvents = $this->config->getConfigData()->getMailEvents();
|
||||
|
||||
if (count($configEvents) === 0) {
|
||||
$this->events = $this->parseEventsToRegex(array_merge(self::EVENTS, self::EVENTS_FIXED));
|
||||
$this->events = $this->parseEventsToRegex(self::EVENTS_FIXED);
|
||||
} else {
|
||||
$this->events = $this->parseEventsToRegex(array_merge($configEvents, self::EVENTS_FIXED));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user