Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 8a9cee3

Browse files
authored
Merge pull request #438 from toniperic/patch-1
Fix constant checking to not generate notices
2 parents 905b0e3 + d06347f commit 8a9cee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Net/URLChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private function getHTTPResponseCode($url)
6666
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
6767
// The PHP doc indicates that CURLOPT_CONNECTTIMEOUT_MS constant is added in cURL 7.16.2
6868
// available since PHP 5.2.3.
69-
if (!defined(CURLOPT_CONNECTTIMEOUT_MS)) {
69+
if (!defined('CURLOPT_CONNECTTIMEOUT_MS')) {
7070
define('CURLOPT_CONNECTTIMEOUT_MS', 156); // default value for CURLOPT_CONNECTTIMEOUT_MS
7171
}
7272
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, self::CONNECT_TIMEOUT_MS);

0 commit comments

Comments
 (0)