Vote Details for "[QA-ORPHAN] Net_TrackBack" by davey

» Details
» Comment
In the discover function, I wonder if after this first if (preg_match(...)), you should check the $perm_urls array to make sure that the [1] index exists for the next if, otherwise a notice will be thrown. Like so:

if (preg_match('!dc:identifier="([^"]+)"!m', $rdf, $perm_urls) == 0) {
continue;
}
if (isset($perm_urls[1]) && $perm_urls[1] != $url && $perm_urls[1] != $url_no_anchor) {
continue;
}

Otherwise, excellent code, thank you :)

- Davey