mirror of
https://github.com/moodle/moodle.git
synced 2025-03-15 05:00:06 +01:00
Merge branch 'MDL-67471_master' of https://github.com/t-schroeder/moodle
This commit is contained in:
commit
751189a83a
@ -3626,11 +3626,6 @@ class core_message_external extends external_api {
|
|||||||
public static function mark_notification_read($notificationid, $timeread) {
|
public static function mark_notification_read($notificationid, $timeread) {
|
||||||
global $CFG, $DB, $USER;
|
global $CFG, $DB, $USER;
|
||||||
|
|
||||||
// Check if private messaging between users is allowed.
|
|
||||||
if (empty($CFG->messaging)) {
|
|
||||||
throw new moodle_exception('disabled', 'message');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Warnings array, it can be empty at the end but is mandatory.
|
// Warnings array, it can be empty at the end but is mandatory.
|
||||||
$warnings = array();
|
$warnings = array();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user