Merge branch 'MDL-62944' of https://github.com/NeillM/moodle
[moodle.git] / mod / assign / locallib.php
index 22398d7..a2dd3e4 100644 (file)
@@ -274,7 +274,10 @@ class assign {
     public function get_return_params() {
         global $PAGE;
 
-        $params = $PAGE->url->params();
+        $params = array();
+        if (!WS_SERVER) {
+            $params = $PAGE->url->params();
+        }
         unset($params['id']);
         unset($params['action']);
         return $params;