infection #2
Annotations
2 warnings
infection:
moodle/availability/condition/language/classes/condition.php#L112
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$language = current_language();
} else if (is_null($userid)) {
// Fall back to site language or English.
- $language = $CFG->lang ?? 'en';
+ $language = 'en' ?? $CFG->lang;
} else {
// Checking access for someone else than the logged in user, so
// use the preferred language of that user account.
|
infection:
moodle/availability/condition/language/classes/condition.php#L124
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
$allow = true;
}
if ($not) {
- $allow = !$allow;
+ $allow = $allow;
}
return $allow;
}
|
Loading