Remove notice when request is made and test flag is not set.

Message:
 PHP Notice:  Undefined index: PHP_CURL_CLASS_TEST_MODE_ENABLED in
 ./php-curl-class/tests/PHPCurlClass/server.php on line 4
This commit is contained in:
Zach Borboa
2019-07-18 19:06:52 -07:00
parent e782f41cd8
commit f27059b170
+1 -1
View File
@@ -1,7 +1,7 @@
<?php
// Prevent direct access unless testing.
if (getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') !== 'yes' &&
$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
@$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
exit;
}