Permalink
Browse files

Fixing bugs

  • Loading branch information...
1 parent 00689f5 commit a021989b9f33ac7430079cec1a7abab11a36636e @dhensby dhensby committed Sep 20, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 code/Core/FCFSiteTreeDecorator.php
@@ -19,8 +19,8 @@ class FirstClickFree {
static function remove_bot($name) {
if (is_array($name)) {
- foreach ($names as $name) {
- self::remove_bot($name);
+ foreach ($name as $uniqName) {
+ self::remove_bot($uniqName);
}
}
unset(self::$bot_identifying_UA_items[$name]);
@@ -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) {

0 comments on commit a021989

Please sign in to comment.