Ticket #532 (closed Bug: fixed)

Opened 8 months ago

Last modified 8 months ago

Library User_agent: is_robot ist not working

Reported by: Tim81 Owned by: Geert
Priority: minor Milestone:
Component: Libraries Version: 2.1 Release
Keywords: robot robots user_agent is_robot Cc:

Description

Currently, "$this->User_agent->is_robot" (User_agent library) will always return "FALSE". This is, because in the "sytem/config/user_agents.php" the array of the robots is called "robots" instead of "robot". So in the constructor of the User_agent library, the condition in "if (isset($this->$type))" (line 41) is always false, because the var in the library is simply called "robot".

Change History

Changed 8 months ago by Geert

  • owner changed from - No owner - to Geert
  • status changed from new to assigned

Changed 8 months ago by Geert

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r2376. Good call, Tim.

Note: See TracTickets for help on using tickets.