Skip to content

Commit aade24f

Browse files
author
Till Brehm
committed
Merge branch '6821-fix-issue-with-operator-in-php-8-3-in-100-mailbox_stats_hourly-inc-php' into 'develop'
Resolve "Fix issue with ?? operator in PHP 8.3 in 100-mailbox_stats_hourly.inc.php" Closes #6821 See merge request ispconfig/ispconfig3!1974
2 parents 996e3a9 + 4629c22 commit aade24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/100-mailbox_stats_hourly.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private function update_last_mail_login() {
9696
$matches = [];
9797
// Match pop3/imap logings, or alternately smtp logins.
9898
if (preg_match('/(.*) (imap|pop3)-login: Login: user=\<([\w\.@-]+)\>/', $line, $matches) || preg_match('/(.*) sasl_method=PLAIN, sasl_username=([\w\.@-]+)/', $line, $matches)) {
99-
$user = $matches[3] ?? $matches[2];
99+
$user = isset($matches[3]) ? $matches[3] : $matches[2];
100100
$updatedUsers[] = $user;
101101
}
102102

0 commit comments

Comments
 (0)