# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/webservice/amf/locallib.php --- moodle/webservice/amf/locallib.php Base (1.6) +++ moodle/webservice/amf/locallib.php Locally Modified (Based On 1.6) @@ -66,6 +66,12 @@ if ($params){ $paramstocast = split(',', $params); foreach ($paramstocast as $paramtocast) { + //clean the parameter name from any potential default value assignment + // i.e. if the param is: $search = '' + // we only want: $search + $paramtocast = split('=', $paramtocast); + $paramtocast = $paramtocast[0]; + $paramtocast = trim($paramtocast); $castingcode .= $paramtocast . '=webservice_zend_server::cast_objects_to_array('.$paramtocast.');';