Skip to content
Snippets Groups Projects
Commit 1d1df935 authored by JediKev's avatar JediKev Committed by Peter Rotich
Browse files

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.
parent 8c3f7a5f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment