diff options
author | Dean Stalker <dean.stalker@gmail.com> | 2015-02-11 10:31:28 +1000 |
---|---|---|
committer | Dean Stalker <dean.stalker@gmail.com> | 2015-02-11 10:31:28 +1000 |
commit | 240cc49c0ffa77803e9307e9833119349d59d49e (patch) | |
tree | caa683fcc5c94cf8011999ca716f11adf02c6a19 | |
parent | ad0e2ffc901c27477bba23bf762215b7e2350d21 (diff) | |
download | php-ssrs-240cc49c0ffa77803e9307e9833119349d59d49e.zip php-ssrs-240cc49c0ffa77803e9307e9833119349d59d49e.tar.gz php-ssrs-240cc49c0ffa77803e9307e9833119349d59d49e.tar.bz2 |
Update NTLM.php
There is precedence issue occurring with this ternary in later versions of PHP. Suggest wrapping in brackets to ensure the ternary stays self-contained.
-rwxr-xr-x | library/SSRS/Soap/NTLM.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/SSRS/Soap/NTLM.php b/library/SSRS/Soap/NTLM.php index 3820de8..cc5b0fd 100755 --- a/library/SSRS/Soap/NTLM.php +++ b/library/SSRS/Soap/NTLM.php @@ -132,7 +132,7 @@ class NTLM extends \SoapClient { curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_NTLM); $headers = array( - 'Method: ' . ($data === null) ? 'GET' : 'POST', + 'Method: ' . (($data === null) ? 'GET' : 'POST'), 'Connection: Keep-Alive', 'User-Agent: PHP-SOAP-CURL', ); @@ -174,4 +174,4 @@ class NTLM extends \SoapClient { return $this->_lastResponse; } -}
\ No newline at end of file +} |