Ticket #532 (closed Bug: fixed)
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
Note: See
TracTickets for help on using
tickets.
