From 2084786567cdcbc59f525b25e8ce4c83252fff0a Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 18 Nov 2016 10:48:01 -0500 Subject: [PATCH] better --- web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.php b/web/index.php index 0fdf5ee7..6212d6ee 100644 --- a/web/index.php +++ b/web/index.php @@ -8,7 +8,7 @@ if (php_sapi_name() === 'cli-server' && is_file(__DIR__.preg_replace('#(\?.*)$#' include __DIR__ . '/../bootstrap.php'; -define('IS_PRODUCTION', Config::get('is_prod')); +define('IS_PRODUCTION', Config::get('is_prod') === "yes"); ini_set('display_errors', IS_PRODUCTION ? 'off' : 'on'); error_reporting(IS_PRODUCTION ? 0 : (E_ALL | E_STRICT));