You are here

function security_review_check_error_reporting in Security Review 6

Same name and namespace in other branches
  1. 7 security_review.inc \security_review_check_error_reporting()
1 call to security_review_check_error_reporting()
security_review_check_error_reporting_help in ./security_review.help.inc
1 string reference to 'security_review_check_error_reporting'
_security_review_security_checks in ./security_review.inc
Checks for security_review_security_checks() or security_review_get_checks().

File

./security_review.inc, line 370
Stand-alone security checks and review system.

Code

function security_review_check_error_reporting() {
  $error_level = variable_get('error_level', NULL);
  if (is_null($error_level) || intval($error_level) == 1) {

    // When the variable isn't set, or its set to 1 errors are printed to the screen.
    $result = FALSE;
  }
  else {
    $result = TRUE;
  }
  return array(
    'result' => $result,
  );
}