Skip to content

Commit

Permalink
Merge pull request #12460 from freephile/patch-1
Browse files Browse the repository at this point in the history
Fix false negatives in checkResourceUrl()
  • Loading branch information
eileenmcnaughton authored Jul 16, 2018
2 parents 07cdb0a + 47bb2b9 commit 3a09ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ public function checkResourceUrl() {
$arrowUrl = CRM_Core_Config::singleton()->userFrameworkResourceURL . 'packages/jquery/css/images/arrow.png';
$headers = get_headers($arrowUrl);
$fileExists = stripos($headers[0], "200 OK") ? 1 : 0;
if (!$fileExists) {
if ($fileExists === FALSE) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__,
ts('The Resource URL is not set correctly. Please set the <a href="%1">CiviCRM Resource URL</a>.',
Expand Down

0 comments on commit 3a09ea8

Please sign in to comment.