Code:
function is_spam($value, $numlinks)
{
preg_match_all('#(<a href|\[url|http:\/\/)#i', $value, $matches, PREG_PATTERN_ORDER);
if (count($matches[0]) > SPAM_NUM_LINKS)
{
return true;
}
return false;
}
Be sure to remove the comma and space before $numlinks too. That should fix it.