Viewing 1 replies (of 1 total)
  • Anonymous User 357386

    (@anonymized-357386)

    ATM my plugin check $_SERVER[‘HTTP_USER_AGENT’] in mobile_list and set $mobile to “Yes” if is present…
    Well, u can have Undefined variable only if your browser do not send USER_AGENT string.
    I think this can be fixed with a small fix:

    Change line 24 block with this and, please, test if it work fine:

    // Start only if isn't mobile
    if (!isset($mobile))
    {

    With this now check simply if $mobile isset or not ??

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice: Undefined variable: mobile’ is closed to new replies.