Skip to content

Commit

Permalink
Don't use array dereferencing (for PHP 5.3 compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
seancolsen authored and monishdeb committed Jul 24, 2017
1 parent ae969bc commit e0d4afb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/CRM/Utils/StringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ public function testSimplifyURL($imageURL, $forceHttps, $expected) {
public function simplifyURLProvider() {

$config = CRM_Core_Config::singleton();
$localDomain = parse_url($config->userFrameworkBaseURL)['host'];
$urlParts = parse_url($config->userFrameworkBaseURL);
$localDomain = $urlParts['host'];
$externalDomain = 'example.org';

// Ensure that $externalDomain really is different from $localDomain
Expand Down

0 comments on commit e0d4afb

Please sign in to comment.