Skip to content

Commit

Permalink
Fixing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Sep 20, 2011
1 parent 00689f5 commit a021989
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/Core/FCFSiteTreeDecorator.php
Expand Up @@ -19,8 +19,8 @@ class FirstClickFree {


static function remove_bot($name) { static function remove_bot($name) {
if (is_array($name)) { if (is_array($name)) {
foreach ($names as $name) { foreach ($name as $uniqName) {
self::remove_bot($name); self::remove_bot($uniqName);
} }
} }
unset(self::$bot_identifying_UA_items[$name]); unset(self::$bot_identifying_UA_items[$name]);
Expand Down Expand Up @@ -74,7 +74,9 @@ static function checkUA($match) {
} }
} }
} }
return strpos($_SERVER['HTTP_USER_AGENT'],$match) !== false; else {
return strpos($_SERVER['HTTP_USER_AGENT'],$match) !== false;
}
} }


static function checkIP($allowedIPs,$ip) { static function checkIP($allowedIPs,$ip) {
Expand Down

0 comments on commit a021989

Please sign in to comment.