From 98221397b507f8748e103b762e631024242b7882 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Sun, 31 May 2015 15:15:38 +0200 Subject: [PATCH] Check about bootstrap for test phase. --- vars.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars.php b/vars.php index 5306b9b8..40c1a6c4 100644 --- a/vars.php +++ b/vars.php @@ -8,7 +8,7 @@ if (!defined('APPLICATION_PATH')) { // Define our PHPCI_URL, if not already defined: if (!defined('PHPCI_URL')) { - define('PHPCI_URL', $container->get('config')->get('phpci.url')); + define('PHPCI_URL', isset($container) ? $container->get('config')->get('phpci.url') : ''); } // Define PHPCI_BIN_DIR @@ -38,5 +38,5 @@ if (!defined('IS_WIN')) { // If an environment variable is set defining our config location, use that // otherwise fall back to PHPCI/config.yml. if (!defined('PHPCI_CONFIG_FILE')) { - define('PHPCI_CONFIG_FILE', $container->get('config_file')); + define('PHPCI_CONFIG_FILE', isset($container) ? $container->get('config_file') : 'PHPCI/config.yml'); }