From 5d78635e40ff413b997d05eaddca2aa2487c4d6e Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 29 Dec 2014 14:38:07 +0530 Subject: [PATCH] MDL-48704 inbound: Fix notices in pickup task --- mod/forum/classes/message/inbound/reply_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/classes/message/inbound/reply_handler.php b/mod/forum/classes/message/inbound/reply_handler.php index 86d91d54625..1c094963799 100644 --- a/mod/forum/classes/message/inbound/reply_handler.php +++ b/mod/forum/classes/message/inbound/reply_handler.php @@ -117,7 +117,7 @@ class reply_handler extends \core\message\inbound\handler { } // And check the availability. - if (!\core_availability\info_module::is_user_visible($cm, $USER, true)) { + if (!\core_availability\info_module::is_user_visible($cm)) { $data = new \stdClass(); $data->forum = $forum; throw new \core\message\inbound\processing_failed_exception('messageinboundforumhidden', 'mod_forum', $data);