summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Report.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/SSRS/Report.php')
-rwxr-xr-xlibrary/SSRS/Report.php5
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