Skip to content

Commit

Permalink
Merge pull request #438 from toniperic/patch-1
Browse files Browse the repository at this point in the history
Fix constant checking to not generate notices
  • Loading branch information
OndraM committed Apr 28, 2017
2 parents 905b0e3 + d06347f commit 8a9cee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Net/URLChecker.php
Expand Up @@ -66,7 +66,7 @@ private function getHTTPResponseCode($url)
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// The PHP doc indicates that CURLOPT_CONNECTTIMEOUT_MS constant is added in cURL 7.16.2
// available since PHP 5.2.3.
if (!defined(CURLOPT_CONNECTTIMEOUT_MS)) {
if (!defined('CURLOPT_CONNECTTIMEOUT_MS')) {
define('CURLOPT_CONNECTTIMEOUT_MS', 156); // default value for CURLOPT_CONNECTTIMEOUT_MS
}
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, self::CONNECT_TIMEOUT_MS);
Expand Down

0 comments on commit 8a9cee3

Please sign in to comment.