From 97ce5bdbc5ff5b9329efe80f8f9b58e8ad5651a3 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 22 Apr 2014 15:27:43 -0400 Subject: [PATCH] Fix config parsing for dev_env --- airtime_mvc/application/configs/conf.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/configs/conf.php b/airtime_mvc/application/configs/conf.php index 129c90104..cf2033d8d 100644 --- a/airtime_mvc/application/configs/conf.php +++ b/airtime_mvc/application/configs/conf.php @@ -35,7 +35,11 @@ class Config { $CC_CONFIG['baseUrl'] = $values['general']['base_url']; $CC_CONFIG['basePort'] = $values['general']['base_port']; $CC_CONFIG['phpDir'] = $values['general']['airtime_dir']; - $CC_CONFIG['dev_env'] = $values['general']['dev_env']; + if (isset($values['general']['dev_env'])) { + $CC_CONFIG['dev_env'] == $values['general']['dev_env']; + } else { + $CC_CONFIG['dev_env'] = 'production'; + } $CC_CONFIG['cache_ahead_hours'] = $values['general']['cache_ahead_hours'];