MDL-87892 admin: Fix MoodleNet check

This commit is contained in:
Huong Nguyen
2026-02-09 16:34:16 +07:00
parent 1c0e0f55bf
commit be8d3d004f
+1 -1
View File
@@ -2292,7 +2292,7 @@ class core_admin_renderer extends plugin_renderer_base {
*/
protected function moodlenet_removal_warning(): string {
$moodlenetenabled = get_config('tool_moodlenet', 'enablemoodlenet');
if (empty($moodlenetenabled)) {
if (!empty($moodlenetenabled)) {
$moodlenetwarning = get_string('moodlenetremovalwarning', 'admin');
return $this->warning($moodlenetwarning);
}