Skip to content
Snippets Groups Projects
Commit 4629c227 authored by Till Brehm's avatar Till Brehm
Browse files

Fix #6821 issue with ?? operator in PHP 8.3 in 100-mailbox_stats_hourly.inc.php

parent 996e3a91
No related branches found
No related tags found
2 merge requests!1985Merge develop into postgres branch,!1974Resolve "Fix issue with ?? operator in PHP 8.3 in 100-mailbox_stats_hourly.inc.php"
Pipeline #15550 passed
......@@ -96,7 +96,7 @@ class cronjob_mailbox_stats_hourly extends cronjob {
$matches = [];
// Match pop3/imap logings, or alternately smtp logins.
if (preg_match('/(.*) (imap|pop3)-login: Login: user=\<([\w\.@-]+)\>/', $line, $matches) || preg_match('/(.*) sasl_method=PLAIN, sasl_username=([\w\.@-]+)/', $line, $matches)) {
$user = $matches[3] ?? $matches[2];
$user = isset($matches[3]) ? $matches[3] : $matches[2];
$updatedUsers[] = $user;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment