Skip to content

Commit a09d7ab

Browse files
authored
Merge pull request #338 from shaifulborhan/patch-1
Use strict comparison operator to check authentication type
2 parents f9871a5 + cd6f437 commit a09d7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infusionsoft/Infusionsoft.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function __construct($config = array())
110110
} else if (isset($config['apikey'])) {
111111
$this->apikey = $config['apikey'];
112112

113-
if ( substr_compare($this->apikey, 'KeapAK', 0, strlen('KeapAK') ) ) {
113+
if ( substr_compare($this->apikey, 'KeapAK', 0, strlen('KeapAK') ) === 0) {
114114
$this->authenticationType = AuthenticationType::ServiceAccountKey;
115115
} else {
116116
$this->authenticationType = AuthenticationType::LegacyKey;

0 commit comments

Comments
 (0)