diff --git a/webservice/documentation.php b/webservice/documentation.php index 2b693a85095..06f59c77960 100644 --- a/webservice/documentation.php +++ b/webservice/documentation.php @@ -104,18 +104,21 @@ EOF; $documentation .= <<) : EOF; - foreach($functiondescription['return'] as $return => $type) { - $documentation .= << - {$type} -EOF; - if (is_array($type)) { - $arraytype = "
".print_r($type, true)."
"; + if (array_key_exists('return', $functiondescription)) { + foreach($functiondescription['return'] as $return => $type) { $documentation .= << + {$type} +EOF; + if (is_array($type)) { + $arraytype = "
".print_r($type, true)."
"; + $documentation .= << {$return} {$arraytype}

EOF; + } } } + foreach($functiondescription['params'] as $param => $type) { if (is_array($type)) {