summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Report.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/SSRS/Report.php')
-rwxr-xr-xlibrary/SSRS/Report.php7
1 files changed, 2 insertions, 5 deletions
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);