Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function add_agent() |
||
38 | { |
||
39 | if (is_cli()) |
||
40 | { |
||
41 | return; |
||
42 | } |
||
43 | |||
44 | if (! $this->check_route()) { |
||
45 | return; |
||
46 | } |
||
47 | |||
48 | // load_class()でuser_agentをロードしたため、$this->user_agentとして |
||
49 | // して代入されているので、それを$this->agentに変更する |
||
50 | $CI =& get_instance(); |
||
51 | $CI->agent = $CI->user_agent; |
||
52 | unset($CI->user_agent); |
||
53 | } |
||
54 | |||
73 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.