CC-3567: Don't require API key for API controller when APPLICATION_ENV = "development"
-fix problem when constant isn't defined
This commit is contained in:
parent
709f38e4ed
commit
1519ada85c
|
@ -73,7 +73,7 @@ class Config {
|
||||||
|
|
||||||
$CC_CONFIG['apiKey'] = array($values['general']['api_key']);
|
$CC_CONFIG['apiKey'] = array($values['general']['api_key']);
|
||||||
|
|
||||||
if (APPLICATION_ENV == "development"){
|
if (defined('APPLICATION_ENV') && APPLICATION_ENV == "development"){
|
||||||
$CC_CONFIG['apiKey'][] = "";
|
$CC_CONFIG['apiKey'][] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue