BUG: Used continue instead of return to stop foreach returning early

This commit is contained in:
Kirk Mayo 2013-08-26 10:55:04 +12:00
parent 106d18cb8e
commit 7c215393f3
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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);