diff --git a/src/Infusionsoft/Infusionsoft.php b/src/Infusionsoft/Infusionsoft.php index b6a2550..91fe31a 100644 --- a/src/Infusionsoft/Infusionsoft.php +++ b/src/Infusionsoft/Infusionsoft.php @@ -110,7 +110,7 @@ public function __construct($config = array()) } else if (isset($config['apikey'])) { $this->apikey = $config['apikey']; - if ( substr_compare($this->apikey, 'KeapAK', 0, strlen('KeapAK') ) ) { + if ( substr_compare($this->apikey, 'KeapAK', 0, strlen('KeapAK') ) === 0) { $this->authenticationType = AuthenticationType::ServiceAccountKey; } else { $this->authenticationType = AuthenticationType::LegacyKey;