Skip to content

Commit 6a7e96c

Browse files
authored
Fix getting IMAP vendor name (#9654)
In some cases, the array's keys where upper case, and the previous code produced a warning and resulted in an empty string, even though the name was present.
1 parent a4e50e3 commit 6a7e96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/lib/Roundcube/rcube_imap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public function get_vendor()
655655
$ident = null;
656656
}
657657

658-
$vendor = (string) (!empty($ident) ? $ident['name'] : '');
658+
$vendor = (string) ($ident['name'] ?? $ident['NAME'] ?? '');
659659
$ident = strtolower($vendor . ' ' . $this->conn->data['GREETING']);
660660
$vendors = ['cyrus', 'dovecot', 'uw-imap', 'gimap', 'hmail', 'greenmail'];
661661

0 commit comments

Comments
 (0)