From 4629c227e3eff276a9c5821a8fb8e67be8dd3be7 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Fri, 28 Feb 2025 10:35:40 +0000 Subject: [PATCH] Fix #6821 issue with ?? operator in PHP 8.3 in 100-mailbox_stats_hourly.inc.php --- server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php b/server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php index a23d2a4128..33acf5fa5c 100644 --- a/server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php +++ b/server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php @@ -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; } -- GitLab