Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing bugs

  • Loading branch information...
commit a021989b9f33ac7430079cec1a7abab11a36636e 1 parent 00689f5
@dhensby dhensby authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 code/Core/FCFSiteTreeDecorator.php
View
8 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.