diff options
Diffstat (limited to 'library/SSRS/Report.php')
-rwxr-xr-x | library/SSRS/Report.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/SSRS/Report.php b/library/SSRS/Report.php index c12a325..9b3f890 100755 --- a/library/SSRS/Report.php +++ b/library/SSRS/Report.php @@ -189,7 +189,10 @@ class SSRS_Report { * @param boolean $recursive * @return SSRS_Object_CatalogItems */ - public function listChildren($itemPath, $recursive = false) { + public function listChildren($itemPath, $recursive=false) { + if (!is_bool($recursive)) { + throw new SSRS_Report_Exception('Recursive Must Be a Boolean'); + } $params = array( 'ItemPath' => $itemPath, 'Recursive' => $recursive |