Merge "Use WebRequest::getBool to have bool cast"

This commit is contained in:
jenkins-bot 2019-12-15 10:06:53 +00:00 committed by Gerrit Code Review
commit 458857ae9b

View file

@ -347,7 +347,7 @@ class OATHManage extends SpecialPage {
}
private function shouldShowDisableWarning() {
return (bool)$this->getRequest()->getVal( 'warn', false ) &&
return $this->getRequest()->getBool( 'warn' ) &&
$this->requestedModule instanceof IModule &&
$this->getEnabled() instanceof IModule;
}