]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed "PHP Notice: Use of undefined constant classpath - assumed 'classpath'"
authorjamiesensei <jamiesensei>
Thu, 12 Mar 2009 09:03:47 +0000 (09:03 +0000)
committerjamiesensei <jamiesensei>
Thu, 12 Mar 2009 09:03:47 +0000 (09:03 +0000)
webservice/amf/lib.php

index 6c29f252df9d6bdf58ebf9ddbd2566362b8eb2ca..084d765607f381afe8f545cbcb49d820a546858f 100644 (file)
@@ -49,7 +49,7 @@ final class amf_server extends webservice_server {
         Zend_Loader::registerAutoload();
 
         //retrieve the api name
-        $classpath = optional_param(classpath,'user',PARAM_ALPHA);
+        $classpath = optional_param('classpath','user',PARAM_ALPHA);
         require_once(dirname(__FILE__) . '/../../'.$classpath.'/external.php');
 
         /// run the Zend AMF server