Language: PHP
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
	protected function getBoolParam(string $param = null, bool $optional = false, $default = false)
	{
		$_default = '0';
		if ($default) {
			$_default = '1';
		}
		$param_value = $this->getParam($param, $optional, $_default);
		if ($param_value && intval($param_value) != 0) {
			return '1';
		}
		return '0';
	}