Skip to content

Commit 7b55592

Browse files
committed
PHP 5.4 compatibility #5226 #6563
1 parent bbd8074 commit 7b55592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ private function update_last_mail_login() {
9494
$line = strtok($log_lines, PHP_EOL);
9595
while ($line !== FALSE) {
9696
$matches = [];
97-
// Match pop3/imap logings, or alternately smtp logins.
97+
// Match pop3/imap logins, 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)) {
9999
$user = isset($matches[3]) ? $matches[3] : $matches[2];
100100
$updatedUsers[] = $user;
101101
}
102102

103103
// get the next line
104-
$line = strtok(PHP_EOL);
104+
$line = strtok($log_lines, PHP_EOL);
105105
}
106106

107107
$uniqueUsers = array_unique($updatedUsers);

0 commit comments

Comments
 (0)