diff options
-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)); } |