mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 15:05:44 +00:00
BUG: Used continue instead of return to stop foreach returning early
This commit is contained in:
parent
106d18cb8e
commit
7c215393f3
Binary file not shown.
@ -23,9 +23,9 @@ class CheckExternalLinks extends BuildTask {
|
||||
|
||||
// ignore SiteTree and assets links as they will be caught by SiteTreeLinkTracking
|
||||
if(preg_match('/\[sitetree_link,id=([0-9]+)\]/i', $href, $matches)) {
|
||||
return;
|
||||
continue;
|
||||
} else if(substr($href, 0, strlen(ASSETS_DIR) + 1) == ASSETS_DIR.'/') {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
if($href && function_exists('curl_init')) {
|
||||
$handle = curl_init($href);
|
||||
|
Loading…
x
Reference in New Issue
Block a user