diff --git a/lib/classes/plugininfo/webservice.php b/lib/classes/plugininfo/webservice.php index 4df6637fd9a..f898155cc6c 100644 --- a/lib/classes/plugininfo/webservice.php +++ b/lib/classes/plugininfo/webservice.php @@ -78,7 +78,7 @@ class webservice extends base { if ($haschanged) { $new = implode(',', array_flip($plugins)); - add_to_config_log('webserviceprotocols', $CFG->webserviceprotocols, $new, 'core'); + add_to_config_log('webserviceprotocols', $CFG->webserviceprotocols ?? '', $new, 'core'); set_config('webserviceprotocols', $new); // Reset caches. \core_plugin_manager::reset_caches();