mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user