Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

UPDATE bug fix

UPDATE bug fix when setting optionSendParametersAsArray, set
optionSendArrayAsParameter only if parameter value is true
  • Loading branch information...
mikaelcom committed Oct 31, 2012
1 parent 903672a commit 214c9d96f637cb00f5c65bb8282966bd5ba5eebe
Showing with 4 additions and 2 deletions.
  1. +4 −2 WsdlToPhp.php
@@ -1550,7 +1550,7 @@ public function getOptionSendArrayAsParameter()
*/
public function setOptionSendArrayAsParameter($_optionSendArrayAsParameter = false)
{
$this->optionSendArrayAsParameter = $_optionSendArrayAsParameter?true:false;
$this->optionSendArrayAsParameter = $_optionSendArrayAsParameter;
}
/**
* @return bool
@@ -1602,12 +1602,14 @@ public function getOptionSendParametersAsArray()
return $this->optionSendParametersAsArray;
}
/**
* @uses WsdlToPhp::setOptionSendArrayAsParameter() if param is true
* @param bool $optionSendParametersAsArray
*/
public function setOptionSendParametersAsArray($_optionSendParametersAsArray = false)
{
$this->optionSendParametersAsArray = $_optionSendParametersAsArray;
$this->setOptionSendArrayAsParameter($_optionSendParametersAsArray);
if($_optionSendParametersAsArray)
$this->setOptionSendArrayAsParameter($_optionSendParametersAsArray);
}
/**
* @return the $optionInheritsClassIdentifier

0 comments on commit 214c9d9

Please sign in to comment.
You can’t perform that action at this time.