From 1d1df93575a0126fda2bb4f666f5c42fd6a458cc Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Wed, 7 Mar 2018 11:11:44 -0600 Subject: [PATCH] issue: Fix imap_open Disable Authenticator This addresses an issue where the 'DISABLE_AUTHENTICATOR' args were not properly added to the `imap_open` params. This changes the `+=` operator to `array_merge()` to successufully add the params. --- include/class.mailfetch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php index 7333992a4..fec76bc01 100644 --- a/include/class.mailfetch.php +++ b/include/class.mailfetch.php @@ -136,8 +136,8 @@ class MailFetcher { // Disable Kerberos and NTLM authentication if it happens to be // supported locally or remotely if (version_compare(PHP_VERSION, '5.3.2', '>=')) - $args += array(NULL, 0, array( - 'DISABLE_AUTHENTICATOR' => array('GSSAPI', 'NTLM'))); + $args = array_merge($args, array(NULL, 0, array( + 'DISABLE_AUTHENTICATOR' => array('GSSAPI', 'NTLM')))); $this->mbox = @call_user_func_array('imap_open', $args); -- GitLab