protected function _set_robot()
{
if (is_array($this->robots) && count($this->robots) > 0) {
foreach ($this->robots as $key => $val) {
if (preg_match('|' . preg_quote($key) . '|i', $this->agent)) {
$this->is_robot = TRUE;
$this->robot = $val;
$this->_set_mobile();
return TRUE;
}
}
}
return FALSE;
}