Permalink
Browse files

MDL-29276 fix missing global jerome in generate_simple_struct_class()…

… - it breaks normal PHP-SOAP call
  • Loading branch information...
1 parent 5d2db8a commit b02578db42c493fb34b9f2e8f6e603ce8e164a17 @mouneyrac mouneyrac committed Sep 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 webservice/soap/locallib.php
@@ -136,6 +136,7 @@ protected function send_error($ex=null) {
}
protected function generate_simple_struct_class(external_single_structure $structdesc) {
+ global $USER;
// let's use unique class name, there might be problem in unit tests
$classname = 'webservices_struct_class_000000';
while(class_exists($classname)) {

0 comments on commit b02578d

Please sign in to comment.