From 92717f89a5b3cc581bc18c69b0f5ae36f618be9a Mon Sep 17 00:00:00 2001 From: Amaia Anabitarte Date: Wed, 15 May 2019 18:35:56 +0200 Subject: [PATCH] MDL-65619 core_message: Don't unset default notification preferences Default notification preferences are not kept when a notification provider is disabled. --- admin/message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/message.php b/admin/message.php index 9a43f61256d..166acccaed3 100644 --- a/admin/message.php +++ b/admin/message.php @@ -60,7 +60,7 @@ if (($form = data_submitted()) && confirm_sesskey()) { // setting for each possible processor. Note that this block will // always be processed first after entring parental foreach iteration // so we can change form values on this stage. - foreach ($allprocessors as $processor) { + foreach ($processors as $processor) { $value = ''; if (isset($form->{$componentprovidersetting}[$processor->name])) { $value = $form->{$componentprovidersetting}[$processor->name];