diff options
author | arron.woods <arron.woods@deae1e92-32f9-c189-e222-5b9b5081a27a> | 2011-03-29 17:52:55 +0000 |
---|---|---|
committer | arron.woods <arron.woods@deae1e92-32f9-c189-e222-5b9b5081a27a> | 2011-03-29 17:52:55 +0000 |
commit | 4850f2c09dc3b8f886bd90cfb8b1b7e380b2d78e (patch) | |
tree | 82ce3c9b26605dc3aff7e3e5fc1b153cd55c6771 | |
parent | 6b982b9b32b2e8542c1fb32f918223b6061192a9 (diff) | |
download | php-ssrs-4850f2c09dc3b8f886bd90cfb8b1b7e380b2d78e.zip php-ssrs-4850f2c09dc3b8f886bd90cfb8b1b7e380b2d78e.tar.gz php-ssrs-4850f2c09dc3b8f886bd90cfb8b1b7e380b2d78e.tar.bz2 |
ListChildren recursive forced to boolean, ReportOutput __toString result typecast as string
-rwxr-xr-x | library/SSRS/Object/ReportOutput.php | 2 | ||||
-rwxr-xr-x | library/SSRS/Report.php | 7 | ||||
-rwxr-xr-x | library/SSRS/Soap/NTLM.php | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php index 81f8598..13fa775 100755 --- a/library/SSRS/Object/ReportOutput.php +++ b/library/SSRS/Object/ReportOutput.php @@ -19,7 +19,7 @@ class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { } public function __toString(){ - return $this->Result; + return (string) $this->Result; } } diff --git a/library/SSRS/Report.php b/library/SSRS/Report.php index 9b3f890..372f416 100755 --- a/library/SSRS/Report.php +++ b/library/SSRS/Report.php @@ -189,13 +189,10 @@ class SSRS_Report { * @param boolean $recursive * @return SSRS_Object_CatalogItems */ - public function listChildren($itemPath, $recursive=false) { - if (!is_bool($recursive)) { - throw new SSRS_Report_Exception('Recursive Must Be a Boolean'); - } + public function listChildren($itemPath, $recursive = false) { $params = array( 'ItemPath' => $itemPath, - 'Recursive' => $recursive + 'Recursive' => (bool) $recursive ); $result = $this->getSoapService()->ListChildren($params); diff --git a/library/SSRS/Soap/NTLM.php b/library/SSRS/Soap/NTLM.php index 32c9ff1..bb85037 100755 --- a/library/SSRS/Soap/NTLM.php +++ b/library/SSRS/Soap/NTLM.php @@ -143,7 +143,7 @@ class SSRS_Soap_NTLM extends SoapClient { curl_setopt($handle, CURLOPT_POSTFIELDS, $data); } - $response = curl_exec($handle); + $response = curl_exec($handle); if($response === false) { throw new SSRS_Soap_Exception('CURL error: ' . curl_error($handle), curl_errno($handle)); } |