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:
Martin Konecny 2012-04-02 15:06:03 -04:00 committed by James
parent 709f38e4ed
commit 1519ada85c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Config {
$CC_CONFIG['apiKey'] = array($values['general']['api_key']);
if (APPLICATION_ENV == "development"){
if (defined('APPLICATION_ENV') && APPLICATION_ENV == "development"){
$CC_CONFIG['apiKey'][] = "";
}