undefined index
-
Hi Mike!
Interesting plugin. You might want to think about re-working your Apple products detector, its throwing a soft error (undefined index).
Why not replace:
if (!(strstr($_SERVER['HTTP_USER_AGENT'],'iPad') && strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') && strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))) {
to:
if (!(strstr($_SERVER['HTTP_USER_AGENT'],'iP'))) {
on line 52.
A little simpler.
Also need to check for empty user-agent.
Regards!
@brianbrown
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘undefined index’ is closed to new replies.