Skip to content

Commit 2df693e

Browse files
author
David Monllao
committed
Merge branch 'MDL-55993-34' of https://github.com/albertolarah/moodle into MOODLE_34_STABLE
2 parents 9299625 + a5ca748 commit 2df693e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mod/assign/locallib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ public function show_intro() {
275275
public function get_return_params() {
276276
global $PAGE;
277277

278-
$params = $PAGE->url->params();
278+
$params = array();
279+
if (!WS_SERVER) {
280+
$params = $PAGE->url->params();
281+
}
279282
unset($params['id']);
280283
unset($params['action']);
281284
return $params;

0 commit comments

Comments
 (0)