Fixed the unit tests: Ensure key in $_SERVER exists.

This commit is contained in:
Albert Santoni 2015-02-18 17:03:16 -05:00
parent 964d7d1326
commit b76ab27230
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ require_once (APPLICATION_PATH."/logging/Logging.php");
Logging::setLogPath('/var/log/airtime/zendphp.log');
// We need to manually route because we can't load Zend without the database being initialized first.
if (strpos($_SERVER["REQUEST_URI"], "/provisioning/create") !== false) {
if (array_key_exists("REQUEST_URI", $_SERVER) && (strpos($_SERVER["REQUEST_URI"], "/provisioning/create") !== false)) {
$provisioningHelper = new ProvisioningHelper($CC_CONFIG["apiKey"][0]);
$provisioningHelper->createAction();
die();