Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use getenv() instead of $_SERVER for env variables

  • Loading branch information...
commit 5f47d66e038039184e39ab0bbb7245b06fc0239c 1 parent da7b008
@philsturgeon philsturgeon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.php
View
2  index.php
@@ -48,7 +48,7 @@
* The development environment will show errors by default.
*/
- if (ENVIRONMENT === PYRO_DEVELOPMENT or (isset($_SERVER['PYRO_DEBUG']) and $_SERVER['PYRO_DEBUG'] === 'on')) {
+ if (ENVIRONMENT === PYRO_DEVELOPMENT or getenv('PYRO_DEBUG') === 'on') {
error_reporting(-1);
ini_set('display_errors', true);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.