Skip to content

Commit 30321ef

Browse files
committed
Merge pull request #12 from Ragazzo/fix_for_codeception_path_detection
fixed condition
2 parents ce8fd70 + b83f6cc commit 30321ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

c3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function __c3_error($message)
5656

5757
// Load Codeception Config
5858
$config_file = realpath(__DIR__) . DIRECTORY_SEPARATOR . 'codeception.yml';
59-
if (array_key_exists('HTTP_X_CODECEPTION_CODECOVERAGE_CONFIG', $_SERVER)) {
59+
if (isset($_SERVER['HTTP_X_CODECEPTION_CODECOVERAGE_CONFIG'])) {
6060
$config_file = realpath(__DIR__) . DIRECTORY_SEPARATOR . $_SERVER['HTTP_X_CODECEPTION_CODECOVERAGE_CONFIG'];
6161
}
6262
if (!file_exists($config_file)) {

0 commit comments

Comments
 (0)