From: jerome Date: Wed, 11 Mar 2009 04:28:04 +0000 (+0000) Subject: web service MDL-12886 documentation: manage no return value into the description... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dfdfe762b12db0056ac8d428140a426857496061;p=moodle.git web service MDL-12886 documentation: manage no return value into the description array --- diff --git a/webservice/documentation.php b/webservice/documentation.php index 2b693a8509..06f59c7796 100644 --- a/webservice/documentation.php +++ b/webservice/documentation.php @@ -104,18 +104,21 @@ EOF; $documentation .= <<) : EOF; - foreach($functiondescription['return'] as $return => $type) { - $documentation .= << $type) { + $documentation .= << - {$type} + {$type} EOF; - if (is_array($type)) { - $arraytype = "
".print_r($type, true)."
"; - $documentation .= <<"; + $documentation .= << {$return} {$arraytype}

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