From 1159c1572463dbf26ebe30579ea9600f0e48b3b4 Mon Sep 17 00:00:00 2001 From: Thiago Locks Date: Wed, 4 Jun 2014 22:14:23 +0700 Subject: [PATCH] Update sdk.php The current condition is matched with 0 or FALSE (with or without "HubSpot_" prefix). See more here: http://sg3.php.net/strpos --- sdk.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk.php b/sdk.php index cbb2271..e941267 100644 --- a/sdk.php +++ b/sdk.php @@ -28,11 +28,11 @@ * @param string $className */ function hubspot_autoload($className) { - if (strpos($className, 'HubSpot_') == 0) { + if (strpos($className, 'HubSpot_') === 0) { $className = strtolower(str_replace('HubSpot_', '', $className)); $file = 'class.' . $className . '.php'; include __DIR__ . DIRECTORY_SEPARATOR . $file; } } -spl_autoload_register('hubspot_autoload'); \ No newline at end of file +spl_autoload_register('hubspot_autoload');