- Added check for missing final match in regular expression.
1 parent 078051d commit 74ff8331301d79195f4596f162dc6932398eca89
nstanger authored on 18 May 2011
Showing 1 changed file
View
2
■■■
Repositories/statistics/scripts/eprints-usage_src.php
/* NJS 2007-01-26
Check whether this is a bot reference.
*/
$user_agent = $matches[4];
$user_agent = count($matches) > 4 ? $matches[4] : '';
$found_country = FALSE;
foreach ($bot_patterns as $id => $patterns)
{
foreach ($patterns as $pat)