From 952ad2709857aaa961adced73673478e0c9fdf03 Mon Sep 17 00:00:00 2001 From: jgulledge Date: Wed, 23 Mar 2011 13:57:33 -0700 Subject: [PATCH] The init parameter "0" is valid, as in the case of calling the SoftLayer_Product_Package service. Check for literal null instead of also ignoring "0" in the init parameter. --- SoftLayer/SoapClient.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftLayer/SoapClient.class.php b/SoftLayer/SoapClient.class.php index 63ad74b..d052371 100644 --- a/SoftLayer/SoapClient.class.php +++ b/SoftLayer/SoapClient.class.php @@ -265,7 +265,7 @@ public static function getClient($serviceName, $id = null, $username = null, $ap $soapClient->setAuthentication(self::API_USER, self::API_KEY); } - if ($id != null) { + if ($id !== null) { $soapClient->setInitParameter($id); }