File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111$ action = $ page ->actions ();
1212
13- $ ua = stringOr (getVar ("ua " ), $ _SERVER ["HTTP_USER_AGENT " ]);
13+ $ ua = stringOr (getVar ("ua " ), isset ( $ _SERVER ["HTTP_USER_AGENT " ]) ? $ _SERVER [ " HTTP_USER_AGENT " ] : " Not accessible " );
1414
1515
1616$ Identify = new Identify ();
Original file line number Diff line number Diff line change 1010
1111$ action = $ page ->actions ();
1212
13- $ ua = stringOr (getVar ("ua " ), $ _SERVER ["HTTP_USER_AGENT " ]);
13+ $ ua = stringOr (getVar ("ua " ), isset ( $ _SERVER ["HTTP_USER_AGENT " ]) ? $ _SERVER [ " HTTP_USER_AGENT " ] : " Not accessible " );
1414
1515$ Identify = new Identify ();
1616$ device = $ Identify ->identifyDevice ($ ua );
Original file line number Diff line number Diff line change 99
1010$ action = $ page ->actions ();
1111
12- $ ua = stringOr (getVar ("ua " ), $ _SERVER ["HTTP_USER_AGENT " ]);
12+ $ ua = stringOr (getVar ("ua " ), isset ( $ _SERVER ["HTTP_USER_AGENT " ]) ? $ _SERVER [ " HTTP_USER_AGENT " ] : " Not accessible " );
1313
1414
1515// include _include in path - for development
Original file line number Diff line number Diff line change 88include_once ("classes/identify.class.php " );
99
1010$ action = $ page ->actions ();
11+ $ ua = isset ($ _SERVER ["HTTP_USER_AGENT " ]) ? $ _SERVER ["HTTP_USER_AGENT " ] : "" ;
1112
12- $ ua = stringOr (getVar ("ua " ), $ _SERVER ["HTTP_USER_AGENT " ]);
13+ $ ua = stringOr (getVar ("ua " ), isset ( $ _SERVER ["HTTP_USER_AGENT " ]) ? $ _SERVER [ " HTTP_USER_AGENT " ] : " Not accessible " );
1314$ callback = stringOr (getVar ("callback " ), "callback " );
1415
1516$ Identify = new Identify ();
Original file line number Diff line number Diff line change 1010
1111$ action = $ page ->actions ();
1212
13- $ ua = stringOr (getVar ("ua " ), $ _SERVER ["HTTP_USER_AGENT " ]);
13+ $ ua = stringOr (getVar ("ua " ), isset ( $ _SERVER ["HTTP_USER_AGENT " ]) ? $ _SERVER [ " HTTP_USER_AGENT " ] : " Not accessible " );
1414
1515$ Identify = new Identify ();
1616$ device = $ Identify ->identifyDevice ($ ua );
You can’t perform that action at this time.
0 commit comments