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 a23d2a41287b6844104db92ba0688c3d8c37dbcd..33acf5fa5cef20603f6acbe879cb57b4b1223250 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;
 			}