Skip to content

Commit f27059b

Browse files
committed
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
1 parent e782f41 commit f27059b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPCurlClass/server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// Prevent direct access unless testing.
33
if (getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') !== 'yes' &&
4-
$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
4+
@$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
55
exit;
66
}
77

0 commit comments

Comments
 (0)