Merge branch 'MDL-60233-master' of git://github.com/jleyva/moodle
authorDavid Monllao <davidm@moodle.com>
Thu, 19 Oct 2017 11:49:23 +0000 (13:49 +0200)
committerDavid Monllao <davidm@moodle.com>
Thu, 19 Oct 2017 11:49:23 +0000 (13:49 +0200)
mod/assign/externallib.php

index adb0a79..c4059c9 100644 (file)
@@ -62,7 +62,7 @@ class mod_assign_external extends external_api {
             $message = 'Unknown warning type.';
         }
 
-        return array('item'=>$detail,
+        return array('item' => s($detail),
                      'itemid'=>$assignmentid,
                      'warningcode'=>$warningcode,
                      'message'=>$message);