Merge branch 'MDL-55993-master' of https://github.com/albertolarah/moodle
authorDavid Monllao <davidm@moodle.com>
Tue, 4 Sep 2018 08:51:28 +0000 (10:51 +0200)
committerDavid Monllao <davidm@moodle.com>
Tue, 4 Sep 2018 08:51:28 +0000 (10:51 +0200)
mod/assign/locallib.php

index a607b2c..7249f4d 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;